Documentation
¶
Index ¶
- Constants
- Variables
- type Actor
- func (o *Actor) Decode(e entity.AttrGetter)
- func (o *Actor) Empty() bool
- func (o *Actor) Encode() (attrs []entity.Attr)
- func (o *Actor) EntityId() entity.Id
- func (o *Actor) InitSchema(sb *schema.SchemaBuilder)
- func (o *Actor) Is(e entity.AttrGetter) bool
- func (o *Actor) Kind() entity.Id
- func (o *Actor) ShortKind() string
- type Node
- func (o *Node) Decode(e entity.AttrGetter)
- func (o *Node) Empty() bool
- func (o *Node) Encode() (attrs []entity.Attr)
- func (o *Node) EntityId() entity.Id
- func (o *Node) InitSchema(sb *schema.SchemaBuilder)
- func (o *Node) Is(e entity.AttrGetter) bool
- func (o *Node) Kind() entity.Id
- func (o *Node) ShortKind() string
Constants ¶
View Source
const ( ActorNodeId = entity.Id("dev.miren.actor/actor.node") ActorStateId = entity.Id("dev.miren.actor/actor.state") )
View Source
const (
NodeEndpointId = entity.Id("dev.miren.actor/node.endpoint")
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct {
ID entity.Id `json:"id"`
Node entity.Id `cbor:"node,omitempty" json:"node,omitempty"`
State []byte `cbor:"state,omitempty" json:"state,omitempty"`
}
func (*Actor) Decode ¶
func (o *Actor) Decode(e entity.AttrGetter)
func (*Actor) InitSchema ¶
func (o *Actor) InitSchema(sb *schema.SchemaBuilder)
type Node ¶
type Node struct {
ID entity.Id `json:"id"`
Endpoint []string `cbor:"endpoint,omitempty" json:"endpoint,omitempty"`
}
func (*Node) Decode ¶
func (o *Node) Decode(e entity.AttrGetter)
func (*Node) InitSchema ¶
func (o *Node) InitSchema(sb *schema.SchemaBuilder)
Click to show internal directories.
Click to hide internal directories.