gopactor

package
v0.0.0-...-ac8452e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gopactor

type Gopactor struct {
	CatchersByPID map[string]*catcher.Catcher
}

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 New

func New() *Gopactor

New creates a new instance of Gopactor

func (*Gopactor) Reset

func (p *Gopactor) Reset()

Resets cleans up the Gopactor instance

func (*Gopactor) ShouldBeRestarting

func (p *Gopactor) ShouldBeRestarting(param1 interface{}, _ ...interface{}) string

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

func (p *Gopactor) ShouldNotSendOrReceive(param1 interface{}, _ ...interface{}) string

ShouldNotSendOrReceive is an assertion method. Its rules are: - The actor should not send or receive any message.

func (*Gopactor) ShouldObserveTermination

func (p *Gopactor) ShouldObserveTermination(param1 interface{}, params ...interface{}) string

ShouldObserveTermination is an assertion method. Its rules are: - The actor should receive a notification that another actor has been terminated

func (*Gopactor) ShouldReceive

func (p *Gopactor) ShouldReceive(param1 interface{}, params ...interface{}) string

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

func (p *Gopactor) ShouldReceiveFrom(param1 interface{}, params ...interface{}) string

ShouldReceiveFrom is an assertion method. Its rules are: - The receiver should receive a given message from a given sender.

func (*Gopactor) ShouldReceiveN

func (p *Gopactor) ShouldReceiveN(param1 interface{}, params ...interface{}) string

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

func (p *Gopactor) ShouldReceiveSomething(param1 interface{}, _ ...interface{}) string

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

func (p *Gopactor) ShouldSend(param1 interface{}, params ...interface{}) string

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

func (p *Gopactor) ShouldSendN(param1 interface{}, params ...interface{}) string

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

func (p *Gopactor) ShouldSendSomething(param1 interface{}, _ ...interface{}) string

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

func (p *Gopactor) ShouldSendTo(param1 interface{}, params ...interface{}) string

ShouldSendTo is an assertion method. Its rules are: - The sender should send one given message to the specified receiver.

func (*Gopactor) ShouldSpawn

func (p *Gopactor) ShouldSpawn(param1 interface{}, params ...interface{}) string

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

func (p *Gopactor) ShouldStart(param1 interface{}, _ ...interface{}) string

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

func (p *Gopactor) ShouldStop(param1 interface{}, _ ...interface{}) string

ShouldStop is an assertion method. Its rules are: - The actor should receive a system message that indicates the actor has been stopped.

func (*Gopactor) SpawnFromFunc

func (p *Gopactor) SpawnFromFunc(f actor.ActorFunc, opts ...options.Options) (*actor.PID, error)

func (*Gopactor) SpawnFromInstance

func (p *Gopactor) SpawnFromInstance(obj actor.Actor, opts ...options.Options) (*actor.PID, error)

func (*Gopactor) SpawnFromProducer

func (p *Gopactor) SpawnFromProducer(producer actor.Producer, opts ...options.Options) (*actor.PID, error)

func (*Gopactor) SpawnNullActor

func (p *Gopactor) SpawnNullActor(opts ...options.Options) (*actor.PID, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL