Documentation ¶
Index ¶
- Variables
- func RegisterAlphabillServiceServer(s grpc.ServiceRegistrar, srv AlphabillServiceServer)
- type AlphabillServiceClient
- type AlphabillServiceServer
- type GetBlockRequest
- type GetBlockResponse
- func (*GetBlockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockResponse) GetBlock() *block.Block
- func (x *GetBlockResponse) GetErrorMessage() string
- func (*GetBlockResponse) ProtoMessage()
- func (x *GetBlockResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockResponse) Reset()
- func (x *GetBlockResponse) String() string
- 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) GetBlocks() []*block.Block
- func (x *GetBlocksResponse) GetErrorMessage() string
- func (x *GetBlocksResponse) GetMaxBlockNumber() uint64
- func (*GetBlocksResponse) ProtoMessage()
- func (x *GetBlocksResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlocksResponse) Reset()
- func (x *GetBlocksResponse) String() string
- type GetMaxBlockNoRequest
- type GetMaxBlockNoResponse
- func (*GetMaxBlockNoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMaxBlockNoResponse) GetBlockNo() uint64
- func (x *GetMaxBlockNoResponse) GetErrorMessage() string
- func (*GetMaxBlockNoResponse) ProtoMessage()
- func (x *GetMaxBlockNoResponse) ProtoReflect() protoreflect.Message
- func (x *GetMaxBlockNoResponse) Reset()
- func (x *GetMaxBlockNoResponse) String() string
- type UnimplementedAlphabillServiceServer
- func (UnimplementedAlphabillServiceServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error)
- func (UnimplementedAlphabillServiceServer) GetBlocks(context.Context, *GetBlocksRequest) (*GetBlocksResponse, error)
- func (UnimplementedAlphabillServiceServer) GetMaxBlockNo(context.Context, *GetMaxBlockNoRequest) (*GetMaxBlockNoResponse, error)
- func (UnimplementedAlphabillServiceServer) ProcessTransaction(context.Context, *txsystem.Transaction) (*txsystem.TransactionResponse, 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: "GetMaxBlockNo", Handler: _AlphabillService_GetMaxBlockNo_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 *txsystem.Transaction, opts ...grpc.CallOption) (*txsystem.TransactionResponse, error) GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*GetBlockResponse, error) GetBlocks(ctx context.Context, in *GetBlocksRequest, opts ...grpc.CallOption) (*GetBlocksResponse, error) GetMaxBlockNo(ctx context.Context, in *GetMaxBlockNoRequest, opts ...grpc.CallOption) (*GetMaxBlockNoResponse, 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, *txsystem.Transaction) (*txsystem.TransactionResponse, error) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error) GetBlocks(context.Context, *GetBlocksRequest) (*GetBlocksResponse, error) GetMaxBlockNo(context.Context, *GetMaxBlockNoRequest) (*GetMaxBlockNoResponse, 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 { ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` Block *block.Block `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() *block.Block
func (*GetBlockResponse) GetErrorMessage ¶
func (x *GetBlockResponse) GetErrorMessage() string
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 { ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` MaxBlockNumber uint64 `protobuf:"varint,2,opt,name=max_block_number,json=maxBlockNumber,proto3" json:"max_block_number,omitempty"` Blocks []*block.Block `protobuf:"bytes,3,rep,name=blocks,proto3" json:"blocks,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) GetBlocks ¶ added in v0.1.1
func (x *GetBlocksResponse) GetBlocks() []*block.Block
func (*GetBlocksResponse) GetErrorMessage ¶ added in v0.1.1
func (x *GetBlocksResponse) GetErrorMessage() string
func (*GetBlocksResponse) GetMaxBlockNumber ¶ added in v0.1.1
func (x *GetBlocksResponse) GetMaxBlockNumber() 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 GetMaxBlockNoRequest ¶
type GetMaxBlockNoRequest struct {
// contains filtered or unexported fields
}
func (*GetMaxBlockNoRequest) Descriptor
deprecated
func (*GetMaxBlockNoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMaxBlockNoRequest.ProtoReflect.Descriptor instead.
func (*GetMaxBlockNoRequest) ProtoMessage ¶
func (*GetMaxBlockNoRequest) ProtoMessage()
func (*GetMaxBlockNoRequest) ProtoReflect ¶
func (x *GetMaxBlockNoRequest) ProtoReflect() protoreflect.Message
func (*GetMaxBlockNoRequest) Reset ¶
func (x *GetMaxBlockNoRequest) Reset()
func (*GetMaxBlockNoRequest) String ¶
func (x *GetMaxBlockNoRequest) String() string
type GetMaxBlockNoResponse ¶
type GetMaxBlockNoResponse struct { ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` BlockNo uint64 `protobuf:"varint,2,opt,name=block_no,json=blockNo,proto3" json:"block_no,omitempty"` // contains filtered or unexported fields }
func (*GetMaxBlockNoResponse) Descriptor
deprecated
func (*GetMaxBlockNoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMaxBlockNoResponse.ProtoReflect.Descriptor instead.
func (*GetMaxBlockNoResponse) GetBlockNo ¶
func (x *GetMaxBlockNoResponse) GetBlockNo() uint64
func (*GetMaxBlockNoResponse) GetErrorMessage ¶
func (x *GetMaxBlockNoResponse) GetErrorMessage() string
func (*GetMaxBlockNoResponse) ProtoMessage ¶
func (*GetMaxBlockNoResponse) ProtoMessage()
func (*GetMaxBlockNoResponse) ProtoReflect ¶
func (x *GetMaxBlockNoResponse) ProtoReflect() protoreflect.Message
func (*GetMaxBlockNoResponse) Reset ¶
func (x *GetMaxBlockNoResponse) Reset()
func (*GetMaxBlockNoResponse) String ¶
func (x *GetMaxBlockNoResponse) 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) GetMaxBlockNo ¶
func (UnimplementedAlphabillServiceServer) GetMaxBlockNo(context.Context, *GetMaxBlockNoRequest) (*GetMaxBlockNoResponse, error)
func (UnimplementedAlphabillServiceServer) ProcessTransaction ¶
func (UnimplementedAlphabillServiceServer) ProcessTransaction(context.Context, *txsystem.Transaction) (*txsystem.TransactionResponse, 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.