mocks

package
v2.2.1-mercury-20230627 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 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 MockConn

type MockConn struct {
	State  connectivity.State
	Ready  bool
	Closed bool
}

func (*MockConn) Close

func (m *MockConn) Close()

func (MockConn) GetState

func (m MockConn) GetState() connectivity.State

func (MockConn) WaitForReady

func (m MockConn) WaitForReady(ctx context.Context) bool

type MockWSRPCClient

type MockWSRPCClient struct {
	TransmitF     func(ctx context.Context, in *pb.TransmitRequest) (*pb.TransmitResponse, error)
	LatestReportF func(ctx context.Context, req *pb.LatestReportRequest) (resp *pb.LatestReportResponse, err error)
}

func (MockWSRPCClient) Close

func (m MockWSRPCClient) Close() error

func (MockWSRPCClient) HealthReport

func (m MockWSRPCClient) HealthReport() map[string]error

func (MockWSRPCClient) LatestReport

func (MockWSRPCClient) Name

func (m MockWSRPCClient) Name() string

func (MockWSRPCClient) Ready

func (m MockWSRPCClient) Ready() error

func (MockWSRPCClient) Start

func (MockWSRPCClient) Transmit

Jump to

Keyboard shortcuts

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