mocks

package
v0.0.0-...-96bc9f9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessagingClient

type MessagingClient struct {
	mock.Mock
}

MessagingClient is an autogenerated mock type for the messagingClient type

func (MessagingClient) Command

func (_m MessagingClient) Command(command string, selfID string, payload []byte) ([]byte, error)

Command provides a mock function with given fields: command, selfID, payload

func (MessagingClient) Request

func (_m MessagingClient) Request(recipients []string, cid, mtype string, data []byte, timeout time.Duration) (string, []byte, error)

Request provides a mock function with given fields: recipients, cid, data, timeout

func (MessagingClient) Send

func (_m MessagingClient) Send(recipients []string, data []byte) error

Send provides a mock function with given fields: recipients, data

func (MessagingClient) Subscribe

func (_m MessagingClient) Subscribe(msgType string, sub func(string, []byte))

Subscribe provides a mock function with given fields: msgType, sub

type PkiClient

type PkiClient struct {
	mock.Mock
}

PkiClient is an autogenerated mock type for the pkiClient type

func (*PkiClient) GetHistory

func (_m *PkiClient) GetHistory(selfID string) ([]json.RawMessage, error)

GetHistory provides a mock function with given fields: selfID

type RestTransport

type RestTransport struct {
	mock.Mock
}

RestTransport is an autogenerated mock type for the restTransport type

func (*RestTransport) BuildURL

func (_m *RestTransport) BuildURL(path string) string

BuildURL provides a mock function with given fields: path

func (*RestTransport) Get

func (_m *RestTransport) Get(path string) ([]byte, error)

Get provides a mock function with given fields: path

func (*RestTransport) Post

func (_m *RestTransport) Post(path string, ctype string, data []byte) ([]byte, error)

Post provides a mock function with given fields: path, ctype, data

Jump to

Keyboard shortcuts

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