Documentation ¶
Index ¶
- type Gopactor
- func (p *Gopactor) Reset()
- func (p *Gopactor) ShouldBeRestarting(param1 interface{}, _ ...interface{}) string
- func (p *Gopactor) ShouldNotSendOrReceive(param1 interface{}, _ ...interface{}) string
- func (p *Gopactor) ShouldObserveTermination(param1 interface{}, params ...interface{}) string
- func (p *Gopactor) ShouldReceive(param1 interface{}, params ...interface{}) string
- func (p *Gopactor) ShouldReceiveFrom(param1 interface{}, params ...interface{}) string
- func (p *Gopactor) ShouldReceiveN(param1 interface{}, params ...interface{}) string
- func (p *Gopactor) ShouldReceiveSomething(param1 interface{}, _ ...interface{}) string
- func (p *Gopactor) ShouldSend(param1 interface{}, params ...interface{}) string
- func (p *Gopactor) ShouldSendN(param1 interface{}, params ...interface{}) string
- func (p *Gopactor) ShouldSendSomething(param1 interface{}, _ ...interface{}) string
- func (p *Gopactor) ShouldSendTo(param1 interface{}, params ...interface{}) string
- func (p *Gopactor) ShouldSpawn(param1 interface{}, params ...interface{}) string
- func (p *Gopactor) ShouldStart(param1 interface{}, _ ...interface{}) string
- func (p *Gopactor) ShouldStop(param1 interface{}, _ ...interface{}) string
- func (p *Gopactor) SpawnFromFunc(f actor.ActorFunc, opts ...options.Options) (*actor.PID, error)
- func (p *Gopactor) SpawnFromInstance(obj actor.Actor, opts ...options.Options) (*actor.PID, error)
- func (p *Gopactor) SpawnFromProducer(producer actor.Producer, opts ...options.Options) (*actor.PID, error)
- func (p *Gopactor) SpawnNullActor(opts ...options.Options) (*actor.PID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gopactor ¶
Gopactor represents a group catchers. Each catcher is identified by the PID of the actor the catcher followes.
var DEFAULT_GOPACTOR *Gopactor
DEFAULT_GOPACTOR is the default instance of Gopactor that is used when you invoke functions of the Gopactor package.
func (*Gopactor) ShouldBeRestarting ¶
ShouldBeRestarting is an assertion method. Its rules are: - The actor should receive a system message that indicates the actor is being restarted.
func (*Gopactor) ShouldNotSendOrReceive ¶
ShouldNotSendOrReceive is an assertion method. Its rules are: - The actor should not send or receive any message.
func (*Gopactor) ShouldObserveTermination ¶
ShouldObserveTermination is an assertion method. Its rules are: - The actor should receive a notification that another actor has been terminated
func (*Gopactor) ShouldReceive ¶
ShouldReceive is an assertion method. Its rules are: - The receiver should receive a given message. - It does not matter who is the sender.
func (*Gopactor) ShouldReceiveFrom ¶
ShouldReceiveFrom is an assertion method. Its rules are: - The receiver should receive a given message from a given sender.
func (*Gopactor) ShouldReceiveN ¶
ShouldReceiveN is an assertion method. Its rules are: - The receiver should receive N messages of any kind. - It does not matter who is the sender.
func (*Gopactor) ShouldReceiveSomething ¶
ShouldReceiveSomething is an assertion method. Its rules are: - The receiver should receive at least one message of any kind. - It does not matter who is the sender.
func (*Gopactor) ShouldSend ¶
ShouldSend is an assertion method. Its rules are: - The sender should send one given message. - It does not matter who is the receiver of the message.
func (*Gopactor) ShouldSendN ¶
ShouldSendN is an assertion method. Its rules are: - The sender should send N messages of any kind. - It does not matter who are the receivers.
func (*Gopactor) ShouldSendSomething ¶
ShouldSendSomething is an assertion method. Its rules are: - The sender should send at least one message of any kind. - It does not matter who is the receiver of the message.
func (*Gopactor) ShouldSendTo ¶
ShouldSendTo is an assertion method. Its rules are: - The sender should send one given message to the specified receiver.
func (*Gopactor) ShouldSpawn ¶
ShouldSpawn is an assertion method. Its rules are: - The actor should spawn a child - The child's PID should contain a given substing in it
func (*Gopactor) ShouldStart ¶
ShouldStart is an assertion method. Its rules are: - The actor should receive a system message that indicates the actor has been started.
func (*Gopactor) ShouldStop ¶
ShouldStop is an assertion method. Its rules are: - The actor should receive a system message that indicates the actor has been stopped.