encodable a good

Former-commit-id: a0afebd82dfd256ec70c02c607af2a9b3b4b046f
This commit is contained in:
bel
2019-06-22 08:58:54 -06:00
parent 730cf1e15a
commit be065c5dcb
12 changed files with 260 additions and 86 deletions

View File

@@ -12,6 +12,7 @@ import (
type Item struct {
Key string
*config.Encodable
}
const nsLast = "nsLast"
@@ -22,7 +23,8 @@ var forever = time.Duration(time.Hour * 99999)
func NewItem(key string, interval time.Duration) (*Item, error) {
i := &Item{
Key: key,
Key: key,
Encodable: &config.Encodable{},
}
if err := i.setInterval(interval); err != nil {