meta_v1alpha

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

View Source
var (
	KindLeased  = entity.Id("dev.miren.meta/kind.leased")
	KindSession = entity.Id("dev.miren.meta/kind.session")
	Schema      = entity.Id("dev.miren.meta/schema.v1alpha")
)

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) Empty

func (o *Leased) Empty() bool

func (*Leased) Encode

func (o *Leased) Encode() (attrs []entity.Attr)

func (*Leased) EntityId

func (o *Leased) EntityId() entity.Id

func (*Leased) InitSchema

func (o *Leased) InitSchema(sb *schema.SchemaBuilder)

func (*Leased) Is

func (o *Leased) Is(e entity.AttrGetter) bool

func (*Leased) Kind

func (o *Leased) Kind() entity.Id

func (*Leased) ShortKind

func (o *Leased) ShortKind() string

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) Empty

func (o *Session) Empty() bool

func (*Session) Encode

func (o *Session) Encode() (attrs []entity.Attr)

func (*Session) EntityId

func (o *Session) EntityId() entity.Id

func (*Session) InitSchema

func (o *Session) InitSchema(sb *schema.SchemaBuilder)

func (*Session) Is

func (o *Session) Is(e entity.AttrGetter) bool

func (*Session) Kind

func (o *Session) Kind() entity.Id

func (*Session) ShortKind

func (o *Session) ShortKind() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL