actor_v1alpha

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

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

View Source
var (
	KindActor = entity.Id("dev.miren.actor/kind.actor")
	KindNode  = entity.Id("dev.miren.actor/kind.node")
	Schema    = entity.Id("dev.miren.actor/schema.v1alpha")
)

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

func (o *Actor) Empty() bool

func (*Actor) Encode

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

func (*Actor) EntityId

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

func (*Actor) InitSchema

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

func (*Actor) Is

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

func (*Actor) Kind

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

func (*Actor) ShortKind

func (o *Actor) ShortKind() string

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

func (o *Node) Empty() bool

func (*Node) Encode

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

func (*Node) EntityId

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

func (*Node) InitSchema

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

func (*Node) Is

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

func (*Node) Kind

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

func (*Node) ShortKind

func (o *Node) ShortKind() string

Jump to

Keyboard shortcuts

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