Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, factory FactoryFunc) error
Register registers the given factory with the given name. It returns an error if a factory with the same name is already registered, if the name is empty or if the factory is nil.
func RegisterMust ¶
func RegisterMust(name string, factory FactoryFunc)
RegisterMust registers the given factory with the given name. It panics if a factory with the same name is already registered, if the name is empty or if the factory is nil.
Types ¶
type Controller ¶
type Controller struct {
middleware.SpawnAwareMixin
}
Controller is the actor responsible for managing the lifecycle of the applications.
func (*Controller) Receive ¶
func (state *Controller) Receive(context actor.Context)
type FactoryFunc ¶
FactoryFunc creates an actor producer for a given configuration. The configuration is an arbitrary value that is passed to the factory function and that is used to create the application actor.
type Registry ¶
type Registry map[string]FactoryFunc
Registry maps application names to their factory functions.