messenger

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMessenger

type MockMessenger struct {
	ReplyToFunc func(msgID string, msg service.DIDCommMsgMap) error
	SendFunc    func(msg service.DIDCommMsgMap, myDID, theirDID string) error
}

MockMessenger mock messenger.

func (*MockMessenger) ReplyTo

func (m *MockMessenger) ReplyTo(msgID string, msg service.DIDCommMsgMap) error

ReplyTo reply to a message.

func (*MockMessenger) ReplyToMsg

func (m *MockMessenger) ReplyToMsg(_, _ service.DIDCommMsgMap, _, _ string) error

ReplyToMsg reply to a message.

func (*MockMessenger) ReplyToNested

ReplyToNested reply to nested message.

func (*MockMessenger) Send

func (m *MockMessenger) Send(msg service.DIDCommMsgMap, myDID, theirDID string) error

Send send message.

func (*MockMessenger) SendToDestination

func (m *MockMessenger) SendToDestination(_ service.DIDCommMsgMap, _ string, _ *service.Destination) error

SendToDestination send mesage to destination.

Jump to

Keyboard shortcuts

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