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) (*transport.Envelope, error) Type string }
MockAuthCrypt mock auth crypt.
func (*MockAuthCrypt) EncodingType ¶
func (m *MockAuthCrypt) EncodingType() string
EncodingType mock encoding type.
type MockOutboundTransport ¶
MockOutboundTransport mock outbound transport structure.
func NewMockOutboundTransport ¶
func NewMockOutboundTransport(expectedResponse string) *MockOutboundTransport
NewMockOutboundTransport new MockOutboundTransport instance.
func (*MockOutboundTransport) Accept ¶
func (o *MockOutboundTransport) Accept(url string) bool
Accept url.
func (*MockOutboundTransport) AcceptRecipient ¶
func (o *MockOutboundTransport) AcceptRecipient([]string) bool
AcceptRecipient checks if there is a connection for the list of recipient keys.
func (*MockOutboundTransport) Send ¶
func (o *MockOutboundTransport) Send(data []byte, destination *service.Destination) (string, error)
Send implementation of MockOutboundTransport.Send api.
Click to show internal directories.
Click to hide internal directories.