Documentation ¶
Index ¶
- Variables
- func RegisterAlphabillServiceServer(s grpc.ServiceRegistrar, srv AlphabillServiceServer)
- type AlphabillServiceClient
- type AlphabillServiceServer
- type GetBlockRequest
- type GetBlockResponse
- type GetBlocksRequest
- func (*GetBlocksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlocksRequest) GetBlockCount() uint64
- func (x *GetBlocksRequest) GetBlockNumber() uint64
- func (*GetBlocksRequest) ProtoMessage()
- func (x *GetBlocksRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlocksRequest) Reset()
- func (x *GetBlocksRequest) String() string
- type GetBlocksResponse
- func (*GetBlocksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlocksResponse) GetBatchMaxBlockNumber() uint64
- func (x *GetBlocksResponse) GetBlocks() [][]byte
- func (x *GetBlocksResponse) GetMaxBlockNumber() uint64
- func (x *GetBlocksResponse) GetMaxRoundNumber() uint64
- func (*GetBlocksResponse) ProtoMessage()
- func (x *GetBlocksResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlocksResponse) Reset()
- func (x *GetBlocksResponse) String() string
- type GetRoundNumberResponse
- func (*GetRoundNumberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoundNumberResponse) GetRoundNumber() uint64
- func (*GetRoundNumberResponse) ProtoMessage()
- func (x *GetRoundNumberResponse) ProtoReflect() protoreflect.Message
- func (x *GetRoundNumberResponse) Reset()
- func (x *GetRoundNumberResponse) String() string
- type Transaction
- type UnimplementedAlphabillServiceServer
- func (UnimplementedAlphabillServiceServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error)
- func (UnimplementedAlphabillServiceServer) GetBlocks(context.Context, *GetBlocksRequest) (*GetBlocksResponse, error)
- func (UnimplementedAlphabillServiceServer) GetRoundNumber(context.Context, *emptypb.Empty) (*GetRoundNumberResponse, error)
- func (UnimplementedAlphabillServiceServer) ProcessTransaction(context.Context, *Transaction) (*emptypb.Empty, error)
- type UnsafeAlphabillServiceServer
Constants ¶
This section is empty.
Variables ¶
var AlphabillService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "abrpc.AlphabillService", HandlerType: (*AlphabillServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ProcessTransaction", Handler: _AlphabillService_ProcessTransaction_Handler, }, { MethodName: "GetBlock", Handler: _AlphabillService_GetBlock_Handler, }, { MethodName: "GetBlocks", Handler: _AlphabillService_GetBlocks_Handler, }, { MethodName: "GetRoundNumber", Handler: _AlphabillService_GetRoundNumber_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "alphabill.proto", }
AlphabillService_ServiceDesc is the grpc.ServiceDesc for AlphabillService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_alphabill_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAlphabillServiceServer ¶
func RegisterAlphabillServiceServer(s grpc.ServiceRegistrar, srv AlphabillServiceServer)
Types ¶
type AlphabillServiceClient ¶
type AlphabillServiceClient interface { ProcessTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*emptypb.Empty, error) GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*GetBlockResponse, error) GetBlocks(ctx context.Context, in *GetBlocksRequest, opts ...grpc.CallOption) (*GetBlocksResponse, error) GetRoundNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetRoundNumberResponse, error) }
AlphabillServiceClient is the client API for AlphabillService 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 NewAlphabillServiceClient ¶
func NewAlphabillServiceClient(cc grpc.ClientConnInterface) AlphabillServiceClient
type AlphabillServiceServer ¶
type AlphabillServiceServer interface { ProcessTransaction(context.Context, *Transaction) (*emptypb.Empty, error) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error) GetBlocks(context.Context, *GetBlocksRequest) (*GetBlocksResponse, error) GetRoundNumber(context.Context, *emptypb.Empty) (*GetRoundNumberResponse, error) // contains filtered or unexported methods }
AlphabillServiceServer is the server API for AlphabillService service. All implementations must embed UnimplementedAlphabillServiceServer for forward compatibility
type GetBlockRequest ¶
type GetBlockRequest struct { BlockNo uint64 `protobuf:"varint,1,opt,name=block_no,json=blockNo,proto3" json:"block_no,omitempty"` // contains filtered or unexported fields }
func (*GetBlockRequest) Descriptor
deprecated
func (*GetBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead.
func (*GetBlockRequest) GetBlockNo ¶
func (x *GetBlockRequest) GetBlockNo() uint64
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 []byte `protobuf:"bytes,2,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() []byte
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 GetBlocksRequest ¶ added in v0.1.1
type GetBlocksRequest struct { BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` BlockCount uint64 `protobuf:"varint,2,opt,name=block_count,json=blockCount,proto3" json:"block_count,omitempty"` // contains filtered or unexported fields }
func (*GetBlocksRequest) Descriptor
deprecated
added in
v0.1.1
func (*GetBlocksRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlocksRequest.ProtoReflect.Descriptor instead.
func (*GetBlocksRequest) GetBlockCount ¶ added in v0.1.1
func (x *GetBlocksRequest) GetBlockCount() uint64
func (*GetBlocksRequest) GetBlockNumber ¶ added in v0.1.1
func (x *GetBlocksRequest) GetBlockNumber() uint64
func (*GetBlocksRequest) ProtoMessage ¶ added in v0.1.1
func (*GetBlocksRequest) ProtoMessage()
func (*GetBlocksRequest) ProtoReflect ¶ added in v0.1.1
func (x *GetBlocksRequest) ProtoReflect() protoreflect.Message
func (*GetBlocksRequest) Reset ¶ added in v0.1.1
func (x *GetBlocksRequest) Reset()
func (*GetBlocksRequest) String ¶ added in v0.1.1
func (x *GetBlocksRequest) String() string
type GetBlocksResponse ¶ added in v0.1.1
type GetBlocksResponse struct { MaxBlockNumber uint64 `protobuf:"varint,2,opt,name=max_block_number,json=maxBlockNumber,proto3" json:"max_block_number,omitempty"` Blocks [][]byte `protobuf:"bytes,3,rep,name=blocks,proto3" json:"blocks,omitempty"` MaxRoundNumber uint64 `protobuf:"varint,4,opt,name=max_round_number,json=maxRoundNumber,proto3" json:"max_round_number,omitempty"` BatchMaxBlockNumber uint64 `protobuf:"varint,5,opt,name=batch_max_block_number,json=batchMaxBlockNumber,proto3" json:"batch_max_block_number,omitempty"` // contains filtered or unexported fields }
func (*GetBlocksResponse) Descriptor
deprecated
added in
v0.1.1
func (*GetBlocksResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlocksResponse.ProtoReflect.Descriptor instead.
func (*GetBlocksResponse) GetBatchMaxBlockNumber ¶ added in v0.2.0
func (x *GetBlocksResponse) GetBatchMaxBlockNumber() uint64
func (*GetBlocksResponse) GetBlocks ¶ added in v0.1.1
func (x *GetBlocksResponse) GetBlocks() [][]byte
func (*GetBlocksResponse) GetMaxBlockNumber ¶ added in v0.1.1
func (x *GetBlocksResponse) GetMaxBlockNumber() uint64
func (*GetBlocksResponse) GetMaxRoundNumber ¶ added in v0.2.0
func (x *GetBlocksResponse) GetMaxRoundNumber() uint64
func (*GetBlocksResponse) ProtoMessage ¶ added in v0.1.1
func (*GetBlocksResponse) ProtoMessage()
func (*GetBlocksResponse) ProtoReflect ¶ added in v0.1.1
func (x *GetBlocksResponse) ProtoReflect() protoreflect.Message
func (*GetBlocksResponse) Reset ¶ added in v0.1.1
func (x *GetBlocksResponse) Reset()
func (*GetBlocksResponse) String ¶ added in v0.1.1
func (x *GetBlocksResponse) String() string
type GetRoundNumberResponse ¶ added in v0.2.0
type GetRoundNumberResponse struct { RoundNumber uint64 `protobuf:"varint,1,opt,name=round_number,json=roundNumber,proto3" json:"round_number,omitempty"` // contains filtered or unexported fields }
func (*GetRoundNumberResponse) Descriptor
deprecated
added in
v0.2.0
func (*GetRoundNumberResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRoundNumberResponse.ProtoReflect.Descriptor instead.
func (*GetRoundNumberResponse) GetRoundNumber ¶ added in v0.2.0
func (x *GetRoundNumberResponse) GetRoundNumber() uint64
func (*GetRoundNumberResponse) ProtoMessage ¶ added in v0.2.0
func (*GetRoundNumberResponse) ProtoMessage()
func (*GetRoundNumberResponse) ProtoReflect ¶ added in v0.2.0
func (x *GetRoundNumberResponse) ProtoReflect() protoreflect.Message
func (*GetRoundNumberResponse) Reset ¶ added in v0.2.0
func (x *GetRoundNumberResponse) Reset()
func (*GetRoundNumberResponse) String ¶ added in v0.2.0
func (x *GetRoundNumberResponse) String() string
type Transaction ¶ added in v0.2.0
type Transaction struct { Order []byte `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
func NewTransaction ¶ added in v0.2.0
func NewTransaction(tx *types.TransactionOrder) (*Transaction, error)
func (*Transaction) Descriptor
deprecated
added in
v0.2.0
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetOrder ¶ added in v0.2.0
func (x *Transaction) GetOrder() []byte
func (*Transaction) ProtoMessage ¶ added in v0.2.0
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶ added in v0.2.0
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶ added in v0.2.0
func (x *Transaction) Reset()
func (*Transaction) String ¶ added in v0.2.0
func (x *Transaction) String() string
type UnimplementedAlphabillServiceServer ¶
type UnimplementedAlphabillServiceServer struct { }
UnimplementedAlphabillServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAlphabillServiceServer) GetBlock ¶
func (UnimplementedAlphabillServiceServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error)
func (UnimplementedAlphabillServiceServer) GetBlocks ¶ added in v0.1.1
func (UnimplementedAlphabillServiceServer) GetBlocks(context.Context, *GetBlocksRequest) (*GetBlocksResponse, error)
func (UnimplementedAlphabillServiceServer) GetRoundNumber ¶ added in v0.2.0
func (UnimplementedAlphabillServiceServer) GetRoundNumber(context.Context, *emptypb.Empty) (*GetRoundNumberResponse, error)
func (UnimplementedAlphabillServiceServer) ProcessTransaction ¶
func (UnimplementedAlphabillServiceServer) ProcessTransaction(context.Context, *Transaction) (*emptypb.Empty, error)
type UnsafeAlphabillServiceServer ¶
type UnsafeAlphabillServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAlphabillServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AlphabillServiceServer will result in compilation errors.