didexchange

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	ActionEventFunc  func(chan<- service.DIDCommAction) error
	CreateConnErr    error
	GetConnectionErr error
}

MockClient is a mock didexchange.MockClient used in tests.

func (*MockClient) CreateConnection

func (c *MockClient) CreateConnection(_ string, _ *did.Doc, _ ...didexchange.ConnectionOption) (string, error)

CreateConnection creates connection.

func (*MockClient) GetConnection

func (c *MockClient) GetConnection(connectionID string) (*didexchange.Connection, error)

GetConnection fetches connection record based on connID.

func (*MockClient) RegisterActionEvent

func (c *MockClient) RegisterActionEvent(actions chan<- service.DIDCommAction) error

RegisterActionEvent registers the action event channel.

Jump to

Keyboard shortcuts

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