alphabill

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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

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

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

Deprecated: Use GetBlocksRequest.ProtoReflect.Descriptor instead.

func (*GetBlocksRequest) GetBlockCount

func (x *GetBlocksRequest) GetBlockCount() uint64

func (*GetBlocksRequest) GetBlockNumber

func (x *GetBlocksRequest) GetBlockNumber() uint64

func (*GetBlocksRequest) ProtoMessage

func (*GetBlocksRequest) ProtoMessage()

func (*GetBlocksRequest) ProtoReflect

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

func (*GetBlocksRequest) Reset

func (x *GetBlocksRequest) Reset()

func (*GetBlocksRequest) String

func (x *GetBlocksRequest) String() string

type GetBlocksResponse

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

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

Deprecated: Use GetBlocksResponse.ProtoReflect.Descriptor instead.

func (*GetBlocksResponse) GetBatchMaxBlockNumber

func (x *GetBlocksResponse) GetBatchMaxBlockNumber() uint64

func (*GetBlocksResponse) GetBlocks

func (x *GetBlocksResponse) GetBlocks() [][]byte

func (*GetBlocksResponse) GetMaxBlockNumber

func (x *GetBlocksResponse) GetMaxBlockNumber() uint64

func (*GetBlocksResponse) GetMaxRoundNumber

func (x *GetBlocksResponse) GetMaxRoundNumber() uint64

func (*GetBlocksResponse) ProtoMessage

func (*GetBlocksResponse) ProtoMessage()

func (*GetBlocksResponse) ProtoReflect

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

func (*GetBlocksResponse) Reset

func (x *GetBlocksResponse) Reset()

func (*GetBlocksResponse) String

func (x *GetBlocksResponse) String() string

type GetRoundNumberResponse

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

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

Deprecated: Use GetRoundNumberResponse.ProtoReflect.Descriptor instead.

func (*GetRoundNumberResponse) GetRoundNumber

func (x *GetRoundNumberResponse) GetRoundNumber() uint64

func (*GetRoundNumberResponse) ProtoMessage

func (*GetRoundNumberResponse) ProtoMessage()

func (*GetRoundNumberResponse) ProtoReflect

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

func (*GetRoundNumberResponse) Reset

func (x *GetRoundNumberResponse) Reset()

func (*GetRoundNumberResponse) String

func (x *GetRoundNumberResponse) String() string

type Transaction

type Transaction struct {
	Order []byte `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetOrder

func (x *Transaction) GetOrder() []byte

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type UnimplementedAlphabillServiceServer

type UnimplementedAlphabillServiceServer struct {
}

UnimplementedAlphabillServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAlphabillServiceServer) GetBlock

func (UnimplementedAlphabillServiceServer) GetBlocks

func (UnimplementedAlphabillServiceServer) GetRoundNumber

func (UnimplementedAlphabillServiceServer) ProcessTransaction

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.

Jump to

Keyboard shortcuts

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