blockdaopb

package
v2.0.7-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockDAOService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blockdaopb.BlockDAOService",
	HandlerType: (*BlockDAOServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Height",
			Handler:    _BlockDAOService_Height_Handler,
		},
		{
			MethodName: "GetBlockHash",
			Handler:    _BlockDAOService_GetBlockHash_Handler,
		},
		{
			MethodName: "GetBlockHeight",
			Handler:    _BlockDAOService_GetBlockHeight_Handler,
		},
		{
			MethodName: "GetBlock",
			Handler:    _BlockDAOService_GetBlock_Handler,
		},
		{
			MethodName: "GetBlockByHeight",
			Handler:    _BlockDAOService_GetBlockByHeight_Handler,
		},
		{
			MethodName: "GetReceipts",
			Handler:    _BlockDAOService_GetReceipts_Handler,
		},
		{
			MethodName: "ContainsTransactionLog",
			Handler:    _BlockDAOService_ContainsTransactionLog_Handler,
		},
		{
			MethodName: "TransactionLogs",
			Handler:    _BlockDAOService_TransactionLogs_Handler,
		},
		{
			MethodName: "Header",
			Handler:    _BlockDAOService_Header_Handler,
		},
		{
			MethodName: "HeaderByHeight",
			Handler:    _BlockDAOService_HeaderByHeight_Handler,
		},
		{
			MethodName: "FooterByHeight",
			Handler:    _BlockDAOService_FooterByHeight_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blockdao.proto",
}

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

View Source
var File_blockdao_proto protoreflect.FileDescriptor

Functions

func RegisterBlockDAOServiceServer

func RegisterBlockDAOServiceServer(s grpc.ServiceRegistrar, srv BlockDAOServiceServer)

Types

type BlockDAOServiceClient

type BlockDAOServiceClient interface {
	Height(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BlockHeightResponse, error)
	GetBlockHash(ctx context.Context, in *BlockHeightRequest, opts ...grpc.CallOption) (*BlockHashResponse, error)
	GetBlockHeight(ctx context.Context, in *BlockHashRequest, opts ...grpc.CallOption) (*BlockHeightResponse, error)
	GetBlock(ctx context.Context, in *BlockHashRequest, opts ...grpc.CallOption) (*GetBlockResponse, error)
	GetBlockByHeight(ctx context.Context, in *BlockHeightRequest, opts ...grpc.CallOption) (*GetBlockResponse, error)
	GetReceipts(ctx context.Context, in *BlockHeightRequest, opts ...grpc.CallOption) (*iotextypes.Receipts, error)
	ContainsTransactionLog(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ContainsTransactionLogResponse, error)
	TransactionLogs(ctx context.Context, in *BlockHeightRequest, opts ...grpc.CallOption) (*TransactionLogsResponse, error)
	Header(ctx context.Context, in *BlockHashRequest, opts ...grpc.CallOption) (*HeaderResponse, error)
	HeaderByHeight(ctx context.Context, in *BlockHeightRequest, opts ...grpc.CallOption) (*HeaderResponse, error)
	FooterByHeight(ctx context.Context, in *BlockHeightRequest, opts ...grpc.CallOption) (*FooterResponse, error)
}

BlockDAOServiceClient is the client API for BlockDAOService 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.

type BlockDAOServiceServer

BlockDAOServiceServer is the server API for BlockDAOService service. All implementations should embed UnimplementedBlockDAOServiceServer for forward compatibility

type BlockHashRequest

type BlockHashRequest struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHashRequest) Descriptor deprecated

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

Deprecated: Use BlockHashRequest.ProtoReflect.Descriptor instead.

func (*BlockHashRequest) GetHash

func (x *BlockHashRequest) GetHash() string

func (*BlockHashRequest) ProtoMessage

func (*BlockHashRequest) ProtoMessage()

func (*BlockHashRequest) ProtoReflect

func (x *BlockHashRequest) ProtoReflect() protoreflect.Message

func (*BlockHashRequest) Reset

func (x *BlockHashRequest) Reset()

func (*BlockHashRequest) String

func (x *BlockHashRequest) String() string

type BlockHashResponse

type BlockHashResponse struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHashResponse) Descriptor deprecated

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

Deprecated: Use BlockHashResponse.ProtoReflect.Descriptor instead.

func (*BlockHashResponse) GetHash

func (x *BlockHashResponse) GetHash() string

func (*BlockHashResponse) ProtoMessage

func (*BlockHashResponse) ProtoMessage()

func (*BlockHashResponse) ProtoReflect

func (x *BlockHashResponse) ProtoReflect() protoreflect.Message

func (*BlockHashResponse) Reset

func (x *BlockHashResponse) Reset()

func (*BlockHashResponse) String

func (x *BlockHashResponse) String() string

type BlockHeightRequest

type BlockHeightRequest struct {
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeightRequest) Descriptor deprecated

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

Deprecated: Use BlockHeightRequest.ProtoReflect.Descriptor instead.

func (*BlockHeightRequest) GetHeight

func (x *BlockHeightRequest) GetHeight() uint64

func (*BlockHeightRequest) ProtoMessage

func (*BlockHeightRequest) ProtoMessage()

func (*BlockHeightRequest) ProtoReflect

func (x *BlockHeightRequest) ProtoReflect() protoreflect.Message

func (*BlockHeightRequest) Reset

func (x *BlockHeightRequest) Reset()

func (*BlockHeightRequest) String

func (x *BlockHeightRequest) String() string

type BlockHeightResponse

type BlockHeightResponse struct {
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeightResponse) Descriptor deprecated

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

Deprecated: Use BlockHeightResponse.ProtoReflect.Descriptor instead.

func (*BlockHeightResponse) GetHeight

func (x *BlockHeightResponse) GetHeight() uint64

func (*BlockHeightResponse) ProtoMessage

func (*BlockHeightResponse) ProtoMessage()

func (*BlockHeightResponse) ProtoReflect

func (x *BlockHeightResponse) ProtoReflect() protoreflect.Message

func (*BlockHeightResponse) Reset

func (x *BlockHeightResponse) Reset()

func (*BlockHeightResponse) String

func (x *BlockHeightResponse) String() string

type ContainsTransactionLogResponse

type ContainsTransactionLogResponse struct {
	Yes bool `protobuf:"varint,1,opt,name=yes,proto3" json:"yes,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainsTransactionLogResponse) Descriptor deprecated

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

Deprecated: Use ContainsTransactionLogResponse.ProtoReflect.Descriptor instead.

func (*ContainsTransactionLogResponse) GetYes

func (*ContainsTransactionLogResponse) ProtoMessage

func (*ContainsTransactionLogResponse) ProtoMessage()

func (*ContainsTransactionLogResponse) ProtoReflect

func (*ContainsTransactionLogResponse) Reset

func (x *ContainsTransactionLogResponse) Reset()

func (*ContainsTransactionLogResponse) String

type FooterResponse

type FooterResponse struct {
	Footer *iotextypes.BlockFooter `protobuf:"bytes,1,opt,name=footer,proto3" json:"footer,omitempty"`
	// contains filtered or unexported fields
}

func (*FooterResponse) Descriptor deprecated

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

Deprecated: Use FooterResponse.ProtoReflect.Descriptor instead.

func (*FooterResponse) GetFooter

func (x *FooterResponse) GetFooter() *iotextypes.BlockFooter

func (*FooterResponse) ProtoMessage

func (*FooterResponse) ProtoMessage()

func (*FooterResponse) ProtoReflect

func (x *FooterResponse) ProtoReflect() protoreflect.Message

func (*FooterResponse) Reset

func (x *FooterResponse) Reset()

func (*FooterResponse) String

func (x *FooterResponse) String() string

type GetBlockByHeightRequest

type GetBlockByHeightRequest struct {
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockByHeightRequest) Descriptor deprecated

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

Deprecated: Use GetBlockByHeightRequest.ProtoReflect.Descriptor instead.

func (*GetBlockByHeightRequest) GetHeight

func (x *GetBlockByHeightRequest) GetHeight() uint64

func (*GetBlockByHeightRequest) ProtoMessage

func (*GetBlockByHeightRequest) ProtoMessage()

func (*GetBlockByHeightRequest) ProtoReflect

func (x *GetBlockByHeightRequest) ProtoReflect() protoreflect.Message

func (*GetBlockByHeightRequest) Reset

func (x *GetBlockByHeightRequest) Reset()

func (*GetBlockByHeightRequest) String

func (x *GetBlockByHeightRequest) String() string

type GetBlockByHeightResponse

type GetBlockByHeightResponse struct {
	Block *iotextypes.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockByHeightResponse) Descriptor deprecated

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

Deprecated: Use GetBlockByHeightResponse.ProtoReflect.Descriptor instead.

func (*GetBlockByHeightResponse) GetBlock

func (x *GetBlockByHeightResponse) GetBlock() *iotextypes.Block

func (*GetBlockByHeightResponse) ProtoMessage

func (*GetBlockByHeightResponse) ProtoMessage()

func (*GetBlockByHeightResponse) ProtoReflect

func (x *GetBlockByHeightResponse) ProtoReflect() protoreflect.Message

func (*GetBlockByHeightResponse) Reset

func (x *GetBlockByHeightResponse) Reset()

func (*GetBlockByHeightResponse) String

func (x *GetBlockByHeightResponse) String() string

type GetBlockHeightResponse

type GetBlockHeightResponse struct {
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockHeightResponse) Descriptor deprecated

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

Deprecated: Use GetBlockHeightResponse.ProtoReflect.Descriptor instead.

func (*GetBlockHeightResponse) GetHeight

func (x *GetBlockHeightResponse) GetHeight() uint64

func (*GetBlockHeightResponse) ProtoMessage

func (*GetBlockHeightResponse) ProtoMessage()

func (*GetBlockHeightResponse) ProtoReflect

func (x *GetBlockHeightResponse) ProtoReflect() protoreflect.Message

func (*GetBlockHeightResponse) Reset

func (x *GetBlockHeightResponse) Reset()

func (*GetBlockHeightResponse) String

func (x *GetBlockHeightResponse) String() string

type GetBlockRequest

type GetBlockRequest struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockRequest) Descriptor deprecated

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

Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead.

func (*GetBlockRequest) GetHash

func (x *GetBlockRequest) GetHash() string

func (*GetBlockRequest) ProtoMessage

func (*GetBlockRequest) ProtoMessage()

func (*GetBlockRequest) ProtoReflect

func (x *GetBlockRequest) ProtoReflect() protoreflect.Message

func (*GetBlockRequest) Reset

func (x *GetBlockRequest) Reset()

func (*GetBlockRequest) String

func (x *GetBlockRequest) String() string

type GetBlockResponse

type GetBlockResponse struct {
	Block *iotextypes.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockResponse) Descriptor deprecated

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

Deprecated: Use GetBlockResponse.ProtoReflect.Descriptor instead.

func (*GetBlockResponse) GetBlock

func (x *GetBlockResponse) GetBlock() *iotextypes.Block

func (*GetBlockResponse) ProtoMessage

func (*GetBlockResponse) ProtoMessage()

func (*GetBlockResponse) ProtoReflect

func (x *GetBlockResponse) ProtoReflect() protoreflect.Message

func (*GetBlockResponse) Reset

func (x *GetBlockResponse) Reset()

func (*GetBlockResponse) String

func (x *GetBlockResponse) String() string

type HeaderResponse

type HeaderResponse struct {
	Header *iotextypes.BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderResponse) Descriptor deprecated

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

Deprecated: Use HeaderResponse.ProtoReflect.Descriptor instead.

func (*HeaderResponse) GetHeader

func (x *HeaderResponse) GetHeader() *iotextypes.BlockHeader

func (*HeaderResponse) ProtoMessage

func (*HeaderResponse) ProtoMessage()

func (*HeaderResponse) ProtoReflect

func (x *HeaderResponse) ProtoReflect() protoreflect.Message

func (*HeaderResponse) Reset

func (x *HeaderResponse) Reset()

func (*HeaderResponse) String

func (x *HeaderResponse) String() string

type PutBlockRequest

type PutBlockRequest struct {
	Block *iotextypes.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*PutBlockRequest) Descriptor deprecated

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

Deprecated: Use PutBlockRequest.ProtoReflect.Descriptor instead.

func (*PutBlockRequest) GetBlock

func (x *PutBlockRequest) GetBlock() *iotextypes.Block

func (*PutBlockRequest) ProtoMessage

func (*PutBlockRequest) ProtoMessage()

func (*PutBlockRequest) ProtoReflect

func (x *PutBlockRequest) ProtoReflect() protoreflect.Message

func (*PutBlockRequest) Reset

func (x *PutBlockRequest) Reset()

func (*PutBlockRequest) String

func (x *PutBlockRequest) String() string

type TransactionLogsResponse

type TransactionLogsResponse struct {
	TransactionLogs *iotextypes.TransactionLogs `protobuf:"bytes,1,opt,name=transactionLogs,proto3" json:"transactionLogs,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionLogsResponse) Descriptor deprecated

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

Deprecated: Use TransactionLogsResponse.ProtoReflect.Descriptor instead.

func (*TransactionLogsResponse) GetTransactionLogs

func (x *TransactionLogsResponse) GetTransactionLogs() *iotextypes.TransactionLogs

func (*TransactionLogsResponse) ProtoMessage

func (*TransactionLogsResponse) ProtoMessage()

func (*TransactionLogsResponse) ProtoReflect

func (x *TransactionLogsResponse) ProtoReflect() protoreflect.Message

func (*TransactionLogsResponse) Reset

func (x *TransactionLogsResponse) Reset()

func (*TransactionLogsResponse) String

func (x *TransactionLogsResponse) String() string

type UnimplementedBlockDAOServiceServer

type UnimplementedBlockDAOServiceServer struct {
}

UnimplementedBlockDAOServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedBlockDAOServiceServer) ContainsTransactionLog

func (UnimplementedBlockDAOServiceServer) FooterByHeight

func (UnimplementedBlockDAOServiceServer) GetBlock

func (UnimplementedBlockDAOServiceServer) GetBlockByHeight

func (UnimplementedBlockDAOServiceServer) GetBlockHash

func (UnimplementedBlockDAOServiceServer) GetBlockHeight

func (UnimplementedBlockDAOServiceServer) GetReceipts

func (UnimplementedBlockDAOServiceServer) Header

func (UnimplementedBlockDAOServiceServer) HeaderByHeight

func (UnimplementedBlockDAOServiceServer) Height

func (UnimplementedBlockDAOServiceServer) TransactionLogs

type UnsafeBlockDAOServiceServer

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

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

Jump to

Keyboard shortcuts

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