rpcdump

package
v0.30.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDumpServer

func NewDumpServer(state *state.State, blockchain bcm.BlockchainInfo, logger *logging.Logger) *dumpServer

func RegisterDumpServer

func RegisterDumpServer(s *grpc.Server, srv DumpServer)

Types

type DumpClient

type DumpClient interface {
	GetDump(ctx context.Context, in *GetDumpParam, opts ...grpc.CallOption) (Dump_GetDumpClient, error)
}

DumpClient is the client API for Dump service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDumpClient

func NewDumpClient(cc *grpc.ClientConn) DumpClient

type DumpServer

type DumpServer interface {
	GetDump(*GetDumpParam, Dump_GetDumpServer) error
}

DumpServer is the server API for Dump service.

type Dump_GetDumpClient

type Dump_GetDumpClient interface {
	Recv() (*dump.Dump, error)
	grpc.ClientStream
}

type Dump_GetDumpServer

type Dump_GetDumpServer interface {
	Send(*dump.Dump) error
	grpc.ServerStream
}

type GetDumpParam

type GetDumpParam struct {
	Height               uint64   `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetDumpParam) Descriptor

func (*GetDumpParam) Descriptor() ([]byte, []int)

func (*GetDumpParam) GetHeight

func (m *GetDumpParam) GetHeight() uint64

func (*GetDumpParam) ProtoMessage

func (*GetDumpParam) ProtoMessage()

func (*GetDumpParam) Reset

func (m *GetDumpParam) Reset()

func (*GetDumpParam) Size

func (m *GetDumpParam) Size() (n int)

func (*GetDumpParam) String

func (m *GetDumpParam) String() string

func (*GetDumpParam) XXX_DiscardUnknown

func (m *GetDumpParam) XXX_DiscardUnknown()

func (*GetDumpParam) XXX_Marshal

func (m *GetDumpParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetDumpParam) XXX_Merge

func (m *GetDumpParam) XXX_Merge(src proto.Message)

func (*GetDumpParam) XXX_MessageName

func (*GetDumpParam) XXX_MessageName() string

func (*GetDumpParam) XXX_Size

func (m *GetDumpParam) XXX_Size() int

func (*GetDumpParam) XXX_Unmarshal

func (m *GetDumpParam) XXX_Unmarshal(b []byte) error

type UnimplementedDumpServer added in v0.28.0

type UnimplementedDumpServer struct {
}

UnimplementedDumpServer can be embedded to have forward compatible implementations.

func (*UnimplementedDumpServer) GetDump added in v0.28.0

Jump to

Keyboard shortcuts

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