rpcdump

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 15 Imported by: 2

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")
	ErrUnexpectedEndOfGroupRpcdump = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Dump_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "rpcdump.Dump",
	HandlerType: (*DumpServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetDump",
			Handler:       _Dump_GetDump_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "rpcdump.proto",
}

Dump_ServiceDesc is the grpc.ServiceDesc for Dump service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func NewDumpServer

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

func RegisterDumpServer

func RegisterDumpServer(s grpc.ServiceRegistrar, 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDumpClient

func NewDumpClient(cc grpc.ClientConnInterface) DumpClient

type DumpServer

type DumpServer interface {
	GetDump(*GetDumpParam, Dump_GetDumpServer) error
	// contains filtered or unexported methods
}

DumpServer is the server API for Dump service. All implementations must embed UnimplementedDumpServer for forward compatibility

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) MarshalToSizedBuffer added in v0.31.0

func (m *GetDumpParam) MarshalToSizedBuffer(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

type UnimplementedDumpServer added in v0.28.0

type UnimplementedDumpServer struct {
}

UnimplementedDumpServer must be embedded to have forward compatible implementations.

func (UnimplementedDumpServer) GetDump added in v0.28.0

type UnsafeDumpServer added in v0.31.0

type UnsafeDumpServer interface {
	// contains filtered or unexported methods
}

UnsafeDumpServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DumpServer will result in compilation errors.

Jump to

Keyboard shortcuts

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