Documentation ¶
Index ¶
- Variables
- func RegisterEngineToBtsServer(s grpc.ServiceRegistrar, srv EngineToBtsServer)
- type EngineToBtsClient
- type EngineToBtsServer
- type GetTriplesRequest
- func (*GetTriplesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTriplesRequest) GetAmount() uint32
- func (x *GetTriplesRequest) GetJobId() uint32
- func (x *GetTriplesRequest) GetTripleType() Type
- func (*GetTriplesRequest) ProtoMessage()
- func (x *GetTriplesRequest) ProtoReflect() protoreflect.Message
- func (x *GetTriplesRequest) Reset()
- func (x *GetTriplesRequest) 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
- type Type
- type UnimplementedEngineToBtsServer
- type UnsafeEngineToBtsServer
Constants ¶
This section is empty.
Variables ¶
var ( Type_name = map[int32]string{ 0: "TYPE_UNKNOWN", 1: "TYPE_FLOAT", 2: "TYPE_FIXEDPOINT", } Type_value = map[string]int32{ "TYPE_UNKNOWN": 0, "TYPE_FLOAT": 1, "TYPE_FIXEDPOINT": 2, } )
Enum value maps for Type.
var EngineToBts_ServiceDesc = grpc.ServiceDesc{ ServiceName: "enginetobts.EngineToBts", HandlerType: (*EngineToBtsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTriples", Handler: _EngineToBts_GetTriples_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "EngineToBts/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_EngineToBts_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 *GetTriplesRequest, opts ...grpc.CallOption) (*GetTriplesResponse, 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, *GetTriplesRequest) (*GetTriplesResponse, error) // contains filtered or unexported methods }
EngineToBtsServer is the server API for EngineToBts service. All implementations must embed UnimplementedEngineToBtsServer for forward compatibility
type GetTriplesRequest ¶
type GetTriplesRequest 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"` TripleType Type `protobuf:"varint,3,opt,name=triple_type,json=tripleType,proto3,enum=enginetobts.Type" json:"triple_type,omitempty"` // contains filtered or unexported fields }
func (*GetTriplesRequest) Descriptor
deprecated
func (*GetTriplesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTriplesRequest.ProtoReflect.Descriptor instead.
func (*GetTriplesRequest) GetAmount ¶
func (x *GetTriplesRequest) GetAmount() uint32
func (*GetTriplesRequest) GetJobId ¶
func (x *GetTriplesRequest) GetJobId() uint32
func (*GetTriplesRequest) GetTripleType ¶
func (x *GetTriplesRequest) GetTripleType() Type
func (*GetTriplesRequest) ProtoMessage ¶
func (*GetTriplesRequest) ProtoMessage()
func (*GetTriplesRequest) ProtoReflect ¶
func (x *GetTriplesRequest) ProtoReflect() protoreflect.Message
func (*GetTriplesRequest) Reset ¶
func (x *GetTriplesRequest) Reset()
func (*GetTriplesRequest) String ¶
func (x *GetTriplesRequest) 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 int64 `protobuf:"varint,2,opt,name=a,proto3" json:"a,omitempty"` B int64 `protobuf:"varint,3,opt,name=b,proto3" json:"b,omitempty"` C int64 `protobuf:"varint,4,opt,name=c,proto3" json:"c,omitempty"` // contains filtered or unexported fields }
func (*Triple) Descriptor
deprecated
func (*Triple) ProtoMessage ¶
func (*Triple) ProtoMessage()
func (*Triple) ProtoReflect ¶
func (x *Triple) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type UnimplementedEngineToBtsServer ¶
type UnimplementedEngineToBtsServer struct { }
UnimplementedEngineToBtsServer must be embedded to have forward compatible implementations.
func (UnimplementedEngineToBtsServer) GetTriples ¶
func (UnimplementedEngineToBtsServer) GetTriples(context.Context, *GetTriplesRequest) (*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.