Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { EntityID EntityID // Entity describes the instance that is used as an entity. Entity *Entity // Instance is the instance of the entity this context is for. Instance EntityHandler // contains filtered or unexported fields }
func (*Context) SideEffect ¶
func (c *Context) SideEffect(effect *protocol.SideEffect)
type Entity ¶
type Entity struct { // ServiceName is the fully qualified name of the service that implements // this entities interface. Setting it is mandatory. ServiceName ServiceName // EntityFunc creates a new entity. EntityFunc func(EntityID) EntityHandler PersistenceID string PassivationStrategy protocol.EntityPassivationStrategy }
type EntityHandler ¶
type Server ¶
type Server struct { entity.UnimplementedValueEntityServer // contains filtered or unexported fields }
type ServiceName ¶
type ServiceName string
func (ServiceName) String ¶
func (sn ServiceName) String() string
Click to show internal directories.
Click to hide internal directories.