Documentation ¶
Index ¶
- type MockConn
- type MockWSRPCClient
- func (m MockWSRPCClient) Close() error
- func (m MockWSRPCClient) HealthReport() map[string]error
- func (m MockWSRPCClient) LatestReport(ctx context.Context, in *pb.LatestReportRequest) (*pb.LatestReportResponse, error)
- func (m MockWSRPCClient) Name() string
- func (m MockWSRPCClient) RawClient() pb.MercuryClient
- func (m MockWSRPCClient) Ready() error
- func (m MockWSRPCClient) ServerURL() string
- func (m MockWSRPCClient) Start(context.Context) error
- func (m MockWSRPCClient) Transmit(ctx context.Context, in *pb.TransmitRequest) (*pb.TransmitResponse, error)
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) GetState ¶
func (m MockConn) GetState() connectivity.State
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 (m MockWSRPCClient) LatestReport(ctx context.Context, in *pb.LatestReportRequest) (*pb.LatestReportResponse, error)
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) Transmit ¶
func (m MockWSRPCClient) Transmit(ctx context.Context, in *pb.TransmitRequest) (*pb.TransmitResponse, error)
Click to show internal directories.
Click to hide internal directories.