Documentation ¶
Index ¶
- Variables
- func RegisterEngineToBtsServer(s grpc.ServiceRegistrar, srv EngineToBtsServer)
- type EngineToBtsClient
- type EngineToBtsServer
- type GetRandBitsResponse
- func (*GetRandBitsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRandBitsResponse) GetRandbits() []int64
- func (*GetRandBitsResponse) ProtoMessage()
- func (x *GetRandBitsResponse) ProtoReflect() protoreflect.Message
- func (x *GetRandBitsResponse) Reset()
- func (x *GetRandBitsResponse) String() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetAmount() uint32
- func (x *GetRequest) GetJobId() uint32
- func (x *GetRequest) GetRequestId() int64
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (x *GetRequest) String() string
- type GetTriplesResponse
- func (*GetTriplesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTriplesResponse) GetTriples() []*Triple
- func (*GetTriplesResponse) ProtoMessage()
- func (x *GetTriplesResponse) ProtoReflect() protoreflect.Message
- func (x *GetTriplesResponse) Reset()
- func (x *GetTriplesResponse) String() string
- type Triple
- func (*Triple) Descriptor() ([]byte, []int)deprecated
- func (x *Triple) GetA() *common_types.BigIntByte
- func (x *Triple) GetB() *common_types.BigIntByte
- func (x *Triple) GetC() *common_types.BigIntByte
- func (*Triple) ProtoMessage()
- func (x *Triple) ProtoReflect() protoreflect.Message
- func (x *Triple) Reset()
- func (x *Triple) String() string
- type UnimplementedEngineToBtsServer
- type UnsafeEngineToBtsServer
Constants ¶
This section is empty.
Variables ¶
var EngineToBts_ServiceDesc = grpc.ServiceDesc{ ServiceName: "enginetobts.EngineToBts", HandlerType: (*EngineToBtsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTriples", Handler: _EngineToBts_GetTriples_Handler, }, { MethodName: "GetRandBits", Handler: _EngineToBts_GetRandBits_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "engine_to_bts.proto", }
EngineToBts_ServiceDesc is the grpc.ServiceDesc for EngineToBts service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_engine_to_bts_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEngineToBtsServer ¶
func RegisterEngineToBtsServer(s grpc.ServiceRegistrar, srv EngineToBtsServer)
Types ¶
type EngineToBtsClient ¶
type EngineToBtsClient interface { GetTriples(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetTriplesResponse, error) GetRandBits(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetRandBitsResponse, error) }
EngineToBtsClient is the client API for EngineToBts 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 NewEngineToBtsClient ¶
func NewEngineToBtsClient(cc grpc.ClientConnInterface) EngineToBtsClient
type EngineToBtsServer ¶
type EngineToBtsServer interface { GetTriples(context.Context, *GetRequest) (*GetTriplesResponse, error) GetRandBits(context.Context, *GetRequest) (*GetRandBitsResponse, error) // contains filtered or unexported methods }
EngineToBtsServer is the server API for EngineToBts service. All implementations must embed UnimplementedEngineToBtsServer for forward compatibility
type GetRandBitsResponse ¶
type GetRandBitsResponse struct { Randbits []int64 `protobuf:"varint,1,rep,packed,name=randbits,proto3" json:"randbits,omitempty"` // contains filtered or unexported fields }
func (*GetRandBitsResponse) Descriptor
deprecated
func (*GetRandBitsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRandBitsResponse.ProtoReflect.Descriptor instead.
func (*GetRandBitsResponse) GetRandbits ¶
func (x *GetRandBitsResponse) GetRandbits() []int64
func (*GetRandBitsResponse) ProtoMessage ¶
func (*GetRandBitsResponse) ProtoMessage()
func (*GetRandBitsResponse) ProtoReflect ¶
func (x *GetRandBitsResponse) ProtoReflect() protoreflect.Message
func (*GetRandBitsResponse) Reset ¶
func (x *GetRandBitsResponse) Reset()
func (*GetRandBitsResponse) String ¶
func (x *GetRandBitsResponse) String() string
type GetRequest ¶
type GetRequest struct { JobId uint32 `protobuf:"varint,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` Amount uint32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` RequestId int64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetAmount ¶
func (x *GetRequest) GetAmount() uint32
func (*GetRequest) GetJobId ¶
func (x *GetRequest) GetJobId() uint32
func (*GetRequest) GetRequestId ¶
func (x *GetRequest) GetRequestId() int64
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetTriplesResponse ¶
type GetTriplesResponse struct { Triples []*Triple `protobuf:"bytes,1,rep,name=triples,proto3" json:"triples,omitempty"` // contains filtered or unexported fields }
func (*GetTriplesResponse) Descriptor
deprecated
func (*GetTriplesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTriplesResponse.ProtoReflect.Descriptor instead.
func (*GetTriplesResponse) GetTriples ¶
func (x *GetTriplesResponse) GetTriples() []*Triple
func (*GetTriplesResponse) ProtoMessage ¶
func (*GetTriplesResponse) ProtoMessage()
func (*GetTriplesResponse) ProtoReflect ¶
func (x *GetTriplesResponse) ProtoReflect() protoreflect.Message
func (*GetTriplesResponse) Reset ¶
func (x *GetTriplesResponse) Reset()
func (*GetTriplesResponse) String ¶
func (x *GetTriplesResponse) String() string
type Triple ¶
type Triple struct { A *common_types.BigIntByte `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"` B *common_types.BigIntByte `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"` C *common_types.BigIntByte `protobuf:"bytes,4,opt,name=c,proto3" json:"c,omitempty"` // contains filtered or unexported fields }
func (*Triple) Descriptor
deprecated
func (*Triple) GetA ¶
func (x *Triple) GetA() *common_types.BigIntByte
func (*Triple) GetB ¶
func (x *Triple) GetB() *common_types.BigIntByte
func (*Triple) GetC ¶
func (x *Triple) GetC() *common_types.BigIntByte
func (*Triple) ProtoMessage ¶
func (*Triple) ProtoMessage()
func (*Triple) ProtoReflect ¶
func (x *Triple) ProtoReflect() protoreflect.Message
type UnimplementedEngineToBtsServer ¶
type UnimplementedEngineToBtsServer struct { }
UnimplementedEngineToBtsServer must be embedded to have forward compatible implementations.
func (UnimplementedEngineToBtsServer) GetRandBits ¶
func (UnimplementedEngineToBtsServer) GetRandBits(context.Context, *GetRequest) (*GetRandBitsResponse, error)
func (UnimplementedEngineToBtsServer) GetTriples ¶
func (UnimplementedEngineToBtsServer) GetTriples(context.Context, *GetRequest) (*GetTriplesResponse, error)
type UnsafeEngineToBtsServer ¶
type UnsafeEngineToBtsServer interface {
// contains filtered or unexported methods
}
UnsafeEngineToBtsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EngineToBtsServer will result in compilation errors.