Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InMemoryProvider ¶
type InMemoryProvider struct { *NoSnapshotSupport // contains filtered or unexported fields }
var InMemory *InMemoryProvider = &InMemoryProvider{}
func (*InMemoryProvider) GetEvents ¶
func (provider *InMemoryProvider) GetEvents(actorName string, callback func(event interface{}))
func (*InMemoryProvider) PersistEvent ¶
func (provider *InMemoryProvider) PersistEvent(actorName string, eventIndex int, event proto.Message)
type Mixin ¶
type Mixin struct {
// contains filtered or unexported fields
}
func (*Mixin) PersistReceive ¶
func (*Mixin) PersistSnapshot ¶
func (*Mixin) Recovering ¶
type NoSnapshotSupport ¶
type NoSnapshotSupport struct { }
func (*NoSnapshotSupport) GetPersistSnapshot ¶
func (provider *NoSnapshotSupport) GetPersistSnapshot(actorName string) func(snapshot interface{})
func (*NoSnapshotSupport) GetSnapshot ¶
func (provider *NoSnapshotSupport) GetSnapshot(actorName string) (interface{}, bool)
func (*NoSnapshotSupport) GetSnapshotInterval ¶
func (provider *NoSnapshotSupport) GetSnapshotInterval() int
type OfferSnapshot ¶
type OfferSnapshot struct {
Snapshot interface{}
}
type Provider ¶
type Provider interface {
GetState() ProviderState
}
Provider is the abstraction used for persistence
type ProviderState ¶
type ProviderState interface { Restart() GetSnapshotInterval() int GetSnapshot(actorName string) (snapshot interface{}, eventIndex int, ok bool) GetEvents(actorName string, eventIndexStart int, callback func(e interface{})) PersistEvent(actorName string, eventIndex int, event proto.Message) PersistSnapshot(actorName string, eventIndex int, snapshot proto.Message) }
type ReplayComplete ¶
type ReplayComplete struct{}
type RequestSnapshot ¶
type RequestSnapshot struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.