didcomm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthCrypt

type MockAuthCrypt struct {
	EncryptValue func(payload, senderPubKey []byte, recipients [][]byte) ([]byte, error)
	DecryptValue func(envelope []byte) ([]byte, error)
	Type         string
}

MockAuthCrypt mock auth crypt

func (*MockAuthCrypt) EncodingType

func (m *MockAuthCrypt) EncodingType() string

EncodingType mock encoding type

func (*MockAuthCrypt) Pack

func (m *MockAuthCrypt) Pack(payload, senderPubKey []byte,
	recipients [][]byte) ([]byte, error)

Pack mock message packing

func (*MockAuthCrypt) Unpack

func (m *MockAuthCrypt) Unpack(envelope []byte) ([]byte, error)

Unpack mock message unpacking

type MockOutboundTransport

type MockOutboundTransport struct {
	ExpectedResponse string
	SendErr          error
	AcceptValue      bool
}

MockOutboundTransport mock outbound transport structure

func NewMockOutboundTransport

func NewMockOutboundTransport(expectedResponse string) *MockOutboundTransport

NewMockOutboundTransport new MockOutboundTransport instance

func (*MockOutboundTransport) Accept

func (transport *MockOutboundTransport) Accept(url string) bool

Accept url

func (*MockOutboundTransport) Send

func (transport *MockOutboundTransport) Send(data []byte, destination string) (string, error)

Send implementation of MockOutboundTransport.Send api

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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