Documentation ¶
Index ¶
- type Item
- type MapItem
- type StrItem
- func (i *StrItem) Collection() string
- func (i *StrItem) FromString(x string) apperror.Error
- func (i *StrItem) GetExpiresAt() time.Time
- func (i *StrItem) GetId() interface{}
- func (i *StrItem) GetKey() string
- func (i *StrItem) GetStrId() string
- func (i *StrItem) GetTags() []string
- func (i *StrItem) GetValue() interface{}
- func (i *StrItem) IsExpired() bool
- func (i *StrItem) SetExpiresAt(x time.Time)
- func (i *StrItem) SetId(key interface{}) error
- func (i *StrItem) SetKey(x string)
- func (i *StrItem) SetStrId(key string) error
- func (i *StrItem) SetTags(x []string)
- func (i *StrItem) SetValue(x interface{})
- func (i *StrItem) ToString() (string, apperror.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { StrItem Value interface{} `db:"required;max:-1;marshal"` }
func (*Item) FromString ¶
type MapItem ¶
func (*MapItem) FromString ¶
type StrItem ¶
type StrItem struct { Key string `db:"primary-key;max:10000"` Value string `db:"required;max:-1"` ExpiresAt time.Time `db:"ignore-zero"` Tags []string `db:"ignore-zero;marshal"` }
func (*StrItem) Collection ¶
func (*StrItem) FromString ¶
func (*StrItem) GetExpiresAt ¶
func (*StrItem) SetExpiresAt ¶
Click to show internal directories.
Click to hide internal directories.