Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type ActorList ¶
type ActorList []*Actor
ActorList is a slice of Actors persistable in a single batch.
type ActorState ¶
type ActorState struct { Height int64 `pg:",pk,notnull,use_zero"` Head string `pg:",pk,notnull"` Code string `pg:",pk,notnull"` State string `pg:",type:jsonb,notnull"` }
func (*ActorState) Persist ¶
func (as *ActorState) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error
type ActorStateList ¶
type ActorStateList []*ActorState
ActorStateList is a list of ActorStates persistable in a single batch.
func (ActorStateList) Persist ¶
func (states ActorStateList) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error
type ActorTaskResult ¶
type ActorTaskResult struct { Actor *Actor State *ActorState }
func (*ActorTaskResult) Persist ¶
func (a *ActorTaskResult) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error
Click to show internal directories.
Click to hide internal directories.