Documentation ¶
Index ¶
- type Messenger
- func (m *Messenger) Install(handler messenger.MessageHandler, msg proto.Message) error
- func (m *Messenger) Recv(from *upid.UPID, msg proto.Message)
- func (m *Messenger) Route(ctx context.Context, upid *upid.UPID, msg proto.Message) error
- func (m *Messenger) Send(ctx context.Context, upid *upid.UPID, msg proto.Message) error
- func (m *Messenger) Start() error
- func (m *Messenger) Stop() error
- func (m *Messenger) UPID() upid.UPID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Messenger ¶
Messenger is a messenger that returns error on every operation.
func NewMessenger ¶
func NewMessenger() *Messenger
NewMessenger returns a mocked messenger used for testing.
func (*Messenger) Recv ¶
Recv receives a upid and a message, it will dispatch the message to its handler with the upid. This is for testing.
Click to show internal directories.
Click to hide internal directories.