Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActorHostOptions ¶
type ActorTypeFactory ¶
type ActorTypeFactory struct {
Type string
Reentrancy config.ReentrancyConfig
Factory targets.Factory
}
type Interface ¶
type Interface interface {
io.Closer
Types() []string
IsActorTypeHosted(actorType string) bool
HostedTarget(actorType, actorKey string) (targets.Interface, bool)
GetOrCreate(actorType, actorID string) (targets.Interface, bool, error)
RegisterActorTypes(opts RegisterActorTypeOptions)
UnRegisterActorTypes(actorTypes ...string) error
SubscribeToTypeUpdates(ctx context.Context) (<-chan []string, []string)
HaltAll() error
HaltIdlable(ctx context.Context, target targets.Idlable) error
Drain(fn func(target targets.Interface) bool) error
Len() map[string]int
DeleteFromTableIn(actor targets.Interface, in time.Duration)
RemoveIdler(actor targets.Interface)
}
type RegisterActorTypeOptions ¶
type RegisterActorTypeOptions struct {
HostOptions *ActorHostOptions
Factories []ActorTypeFactory
}
Click to show internal directories.
Click to hide internal directories.