mocks

package
v2.9.1-zksync-20240229... Latest Latest
Warning

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

Go to latest
Published: Feb 29, 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 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) RawClient added in v2.8.0

func (m MockWSRPCClient) RawClient() pb.MercuryClient

func (MockWSRPCClient) Ready

func (m MockWSRPCClient) Ready() error

func (MockWSRPCClient) ServerURL added in v2.8.0

func (m MockWSRPCClient) ServerURL() string

func (MockWSRPCClient) Start

func (MockWSRPCClient) Transmit

Jump to

Keyboard shortcuts

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