rpcdump

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRpcdump = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRpcdump   = fmt.Errorf("proto: integer overflow")
)

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) Marshal

func (m *GetDumpParam) Marshal() (dAtA []byte, err error)

func (*GetDumpParam) MarshalTo

func (m *GetDumpParam) MarshalTo(dAtA []byte) (int, error)

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) Unmarshal

func (m *GetDumpParam) Unmarshal(dAtA []byte) error

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

Jump to

Keyboard shortcuts

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