Documentation ¶
Index ¶
- func NotifyAfter(ctx *actor.Context, d time.Duration, msg actor.Message) (*actor.Ref, bool)
- func NotifyOnSignal(ctx *actor.Context, signals ...os.Signal)
- func NotifyOnStop(context *actor.Context, ref *actor.Ref, msg actor.Message) <-chan struct{}
- type AskChild
- type Children
- type ForwardThroughMock
- type Group
- type MockActor
- type MockResponse
- type NewChild
- type TellChild
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotifyAfter ¶
NotifyAfter asynchronously notifies the context's recipient with the provided message when after the provided duration.
func NotifyOnSignal ¶
NotifyOnSignal relays incoming signals to the caller. If no signals are provided, all incoming signals will be relayed. Otherwise, just the provided signals will.
Types ¶
type AskChild ¶
AskChild asks the child with the provided ID about the provided message. If the ID is not set, all children are asked about the message.
type Children ¶
type Children struct{}
Children asks the actor for the list of actor references to all children.
type ForwardThroughMock ¶
ForwardThroughMock forwards a message (Msg) to another actor (To), using tell and ask appropriately.
type MockActor ¶
type MockActor struct { Messages []actor.Message Responses map[string]*MockResponse // contains filtered or unexported fields }
MockActor is a convenience actor for testing hierarchies of actors without instantiating off of them.
func (*MockActor) AssertExpectations ¶
AssertExpectations asserts mocked expectations were met.
func (*MockActor) Expect ¶
func (a *MockActor) Expect(t string, r MockResponse)
Expect sets up an expectation to send some response.
type MockResponse ¶
MockResponse sets up a respond to use in respond to a message of a given type.