provider

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 4 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 {
	*mocksvc.MockMessenger
	// contains filtered or unexported fields
}

MockMessenger mock implementation of messenger.

func NewMockMessenger

func NewMockMessenger() *MockMessenger

NewMockMessenger returns new mock messenger.

func (*MockMessenger) GetLastID

func (m *MockMessenger) GetLastID() string

GetLastID returns ID of the last message received.

func (*MockMessenger) ReplyToNested

func (m *MockMessenger) ReplyToNested(msg service.DIDCommMsgMap, opts *service.NestedReplyOpts) error

ReplyToNested mock messenger ReplyToNested.

func (*MockMessenger) Send

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

Send mock messenger Send.

type MockProvider

type MockProvider struct {
	*mockprov.Provider
	CustomMessenger service.Messenger
}

MockProvider mock implementation of provider needed by sdk command controller.

func NewMockProvider

func NewMockProvider() *MockProvider

NewMockProvider returns mock implementation of basic provider.

func (*MockProvider) Messenger

func (p *MockProvider) Messenger() service.Messenger

Messenger return mock messenger.

Jump to

Keyboard shortcuts

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