mock

package
v4.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct{}

func (Addr) Network

func (Addr) Network() string

func (Addr) String

func (Addr) String() string

type ErrorWALStreamServer

type ErrorWALStreamServer struct {
	WALStreamServer
}

-------------.

func (*ErrorWALStreamServer) Send

type GetClientAddrErrorWALStreamServer

type GetClientAddrErrorWALStreamServer struct {
	WALStreamServer
}

--------------.

func (*GetClientAddrErrorWALStreamServer) Context

type ReplicationClient

type ReplicationClient struct {
	StreamClient pb.Replication_GetWALStreamClient
	Error        error
}

func (ReplicationClient) GetWALStream

type WALStreamClient

type WALStreamClient struct {
	Response *pb.GetWALStreamResponse
	Error    error
}

func (*WALStreamClient) CloseSend

func (wsc *WALStreamClient) CloseSend() error

func (*WALStreamClient) Context

func (wsc *WALStreamClient) Context() context.Context

func (*WALStreamClient) Header

func (wsc *WALStreamClient) Header() (metadata.MD, error)

func (*WALStreamClient) Recv

func (wsc *WALStreamClient) Recv() (*pb.GetWALStreamResponse, error)

func (*WALStreamClient) RecvMsg

func (wsc *WALStreamClient) RecvMsg(m interface{}) error

func (*WALStreamClient) SendMsg

func (wsc *WALStreamClient) SendMsg(m interface{}) error

func (*WALStreamClient) Trailer

func (wsc *WALStreamClient) Trailer() metadata.MD

type WALStreamServer

type WALStreamServer struct {
	SendFunc func(resp *proto.GetWALStreamResponse) error
}

func (*WALStreamServer) Context

func (m *WALStreamServer) Context() context.Context

func (*WALStreamServer) RecvMsg

func (m *WALStreamServer) RecvMsg(msg interface{}) error

func (*WALStreamServer) Send

func (*WALStreamServer) SendHeader

func (m *WALStreamServer) SendHeader(metadata.MD) error

func (*WALStreamServer) SendMsg

func (m *WALStreamServer) SendMsg(msg interface{}) error

func (*WALStreamServer) SetHeader

func (m *WALStreamServer) SetHeader(metadata.MD) error

------------.

func (*WALStreamServer) SetTrailer

func (m *WALStreamServer) SetTrailer(metadata.MD)

Jump to

Keyboard shortcuts

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