Documentation
¶
Index ¶
- Constants
- Variables
- type Leased
- func (o *Leased) Decode(e entity.AttrGetter)
- func (o *Leased) Empty() bool
- func (o *Leased) Encode() (attrs []entity.Attr)
- func (o *Leased) EntityId() entity.Id
- func (o *Leased) InitSchema(sb *schema.SchemaBuilder)
- func (o *Leased) Is(e entity.AttrGetter) bool
- func (o *Leased) Kind() entity.Id
- func (o *Leased) ShortKind() string
- type Session
- func (o *Session) Decode(e entity.AttrGetter)
- func (o *Session) Empty() bool
- func (o *Session) Encode() (attrs []entity.Attr)
- func (o *Session) EntityId() entity.Id
- func (o *Session) InitSchema(sb *schema.SchemaBuilder)
- func (o *Session) Is(e entity.AttrGetter) bool
- func (o *Session) Kind() entity.Id
- func (o *Session) ShortKind() string
Constants ¶
View Source
const ( LeasedSessionIdId = entity.Id("db/attr.session") LeasedTtlId = entity.Id("db/entity.ttl") )
View Source
const ( SessionUniqueIdId = entity.Id("dev.miren.meta/session.unique_id") SessionUsageId = entity.Id("dev.miren.meta/session.usage") )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Leased ¶
type Leased struct {
ID entity.Id `json:"id"`
SessionId string `cbor:"session_id,omitempty" json:"session_id,omitempty"`
Ttl int64 `cbor:"ttl,omitempty" json:"ttl,omitempty"`
}
func (*Leased) Decode ¶
func (o *Leased) Decode(e entity.AttrGetter)
func (*Leased) InitSchema ¶
func (o *Leased) InitSchema(sb *schema.SchemaBuilder)
type Session ¶
type Session struct {
ID entity.Id `json:"id"`
UniqueId string `cbor:"unique_id,omitempty" json:"unique_id,omitempty"`
Usage string `cbor:"usage,omitempty" json:"usage,omitempty"`
}
func (*Session) Decode ¶
func (o *Session) Decode(e entity.AttrGetter)
func (*Session) InitSchema ¶
func (o *Session) InitSchema(sb *schema.SchemaBuilder)
Click to show internal directories.
Click to hide internal directories.