Versions in this module Expand all Collapse all v0 v0.1.0 Nov 14, 2023 Changes in this version + var ErrIntOverflowBlock = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthBlock = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupBlock = fmt.Errorf("proto: unexpected end of group") + func RegisterBlockServiceServer(s grpc1.Server, srv BlockServiceServer) + type BlockServiceClient interface + GetByHeight func(ctx context.Context, in *GetByHeightRequest, opts ...grpc.CallOption) (*GetByHeightResponse, error) + GetLatest func(ctx context.Context, in *GetLatestRequest, opts ...grpc.CallOption) (*GetLatestResponse, error) + GetLatestHeight func(ctx context.Context, in *GetLatestHeightRequest, opts ...grpc.CallOption) (BlockService_GetLatestHeightClient, error) + func NewBlockServiceClient(cc grpc1.ClientConn) BlockServiceClient + type BlockServiceServer interface + GetByHeight func(context.Context, *GetByHeightRequest) (*GetByHeightResponse, error) + GetLatest func(context.Context, *GetLatestRequest) (*GetLatestResponse, error) + GetLatestHeight func(*GetLatestHeightRequest, BlockService_GetLatestHeightServer) error + type BlockService_GetLatestHeightClient interface + Recv func() (*GetLatestHeightResponse, error) + type BlockService_GetLatestHeightServer interface + Send func(*GetLatestHeightResponse) error + type GetByHeightRequest struct + Height int64 + func (*GetByHeightRequest) Descriptor() ([]byte, []int) + func (*GetByHeightRequest) ProtoMessage() + func (m *GetByHeightRequest) GetHeight() int64 + func (m *GetByHeightRequest) Marshal() (dAtA []byte, err error) + func (m *GetByHeightRequest) MarshalTo(dAtA []byte) (int, error) + func (m *GetByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetByHeightRequest) Reset() + func (m *GetByHeightRequest) Size() (n int) + func (m *GetByHeightRequest) String() string + func (m *GetByHeightRequest) Unmarshal(dAtA []byte) error + func (m *GetByHeightRequest) XXX_DiscardUnknown() + func (m *GetByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetByHeightRequest) XXX_Merge(src proto.Message) + func (m *GetByHeightRequest) XXX_Size() int + func (m *GetByHeightRequest) XXX_Unmarshal(b []byte) error + type GetByHeightResponse struct + Block *types.Block + BlockId *types.BlockID + func (*GetByHeightResponse) Descriptor() ([]byte, []int) + func (*GetByHeightResponse) ProtoMessage() + func (m *GetByHeightResponse) GetBlock() *types.Block + func (m *GetByHeightResponse) GetBlockId() *types.BlockID + func (m *GetByHeightResponse) Marshal() (dAtA []byte, err error) + func (m *GetByHeightResponse) MarshalTo(dAtA []byte) (int, error) + func (m *GetByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetByHeightResponse) Reset() + func (m *GetByHeightResponse) Size() (n int) + func (m *GetByHeightResponse) String() string + func (m *GetByHeightResponse) Unmarshal(dAtA []byte) error + func (m *GetByHeightResponse) XXX_DiscardUnknown() + func (m *GetByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetByHeightResponse) XXX_Merge(src proto.Message) + func (m *GetByHeightResponse) XXX_Size() int + func (m *GetByHeightResponse) XXX_Unmarshal(b []byte) error + type GetLatestHeightRequest struct + func (*GetLatestHeightRequest) Descriptor() ([]byte, []int) + func (*GetLatestHeightRequest) ProtoMessage() + func (m *GetLatestHeightRequest) Marshal() (dAtA []byte, err error) + func (m *GetLatestHeightRequest) MarshalTo(dAtA []byte) (int, error) + func (m *GetLatestHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetLatestHeightRequest) Reset() + func (m *GetLatestHeightRequest) Size() (n int) + func (m *GetLatestHeightRequest) String() string + func (m *GetLatestHeightRequest) Unmarshal(dAtA []byte) error + func (m *GetLatestHeightRequest) XXX_DiscardUnknown() + func (m *GetLatestHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetLatestHeightRequest) XXX_Merge(src proto.Message) + func (m *GetLatestHeightRequest) XXX_Size() int + func (m *GetLatestHeightRequest) XXX_Unmarshal(b []byte) error + type GetLatestHeightResponse struct + Height int64 + func (*GetLatestHeightResponse) Descriptor() ([]byte, []int) + func (*GetLatestHeightResponse) ProtoMessage() + func (m *GetLatestHeightResponse) GetHeight() int64 + func (m *GetLatestHeightResponse) Marshal() (dAtA []byte, err error) + func (m *GetLatestHeightResponse) MarshalTo(dAtA []byte) (int, error) + func (m *GetLatestHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetLatestHeightResponse) Reset() + func (m *GetLatestHeightResponse) Size() (n int) + func (m *GetLatestHeightResponse) String() string + func (m *GetLatestHeightResponse) Unmarshal(dAtA []byte) error + func (m *GetLatestHeightResponse) XXX_DiscardUnknown() + func (m *GetLatestHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetLatestHeightResponse) XXX_Merge(src proto.Message) + func (m *GetLatestHeightResponse) XXX_Size() int + func (m *GetLatestHeightResponse) XXX_Unmarshal(b []byte) error + type GetLatestRequest struct + func (*GetLatestRequest) Descriptor() ([]byte, []int) + func (*GetLatestRequest) ProtoMessage() + func (m *GetLatestRequest) Marshal() (dAtA []byte, err error) + func (m *GetLatestRequest) MarshalTo(dAtA []byte) (int, error) + func (m *GetLatestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetLatestRequest) Reset() + func (m *GetLatestRequest) Size() (n int) + func (m *GetLatestRequest) String() string + func (m *GetLatestRequest) Unmarshal(dAtA []byte) error + func (m *GetLatestRequest) XXX_DiscardUnknown() + func (m *GetLatestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetLatestRequest) XXX_Merge(src proto.Message) + func (m *GetLatestRequest) XXX_Size() int + func (m *GetLatestRequest) XXX_Unmarshal(b []byte) error + type GetLatestResponse struct + Block *types.Block + BlockId *types.BlockID + func (*GetLatestResponse) Descriptor() ([]byte, []int) + func (*GetLatestResponse) ProtoMessage() + func (m *GetLatestResponse) GetBlock() *types.Block + func (m *GetLatestResponse) GetBlockId() *types.BlockID + func (m *GetLatestResponse) Marshal() (dAtA []byte, err error) + func (m *GetLatestResponse) MarshalTo(dAtA []byte) (int, error) + func (m *GetLatestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetLatestResponse) Reset() + func (m *GetLatestResponse) Size() (n int) + func (m *GetLatestResponse) String() string + func (m *GetLatestResponse) Unmarshal(dAtA []byte) error + func (m *GetLatestResponse) XXX_DiscardUnknown() + func (m *GetLatestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetLatestResponse) XXX_Merge(src proto.Message) + func (m *GetLatestResponse) XXX_Size() int + func (m *GetLatestResponse) XXX_Unmarshal(b []byte) error + type UnimplementedBlockServiceServer struct + func (*UnimplementedBlockServiceServer) GetByHeight(ctx context.Context, req *GetByHeightRequest) (*GetByHeightResponse, error) + func (*UnimplementedBlockServiceServer) GetLatest(ctx context.Context, req *GetLatestRequest) (*GetLatestResponse, error) + func (*UnimplementedBlockServiceServer) GetLatestHeight(req *GetLatestHeightRequest, srv BlockService_GetLatestHeightServer) error