Documentation ¶
Index ¶
- Variables
- func RegisterInferenceServer(s grpc.ServiceRegistrar, srv InferenceServer)
- type CallRequest
- func (*CallRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CallRequest) GetArguments() map[string]string
- func (x *CallRequest) GetName() string
- func (x *CallRequest) GetOptions() *Options
- func (x *CallRequest) GetVersion() string
- func (*CallRequest) ProtoMessage()
- func (x *CallRequest) ProtoReflect() protoreflect.Message
- func (x *CallRequest) Reset()
- func (x *CallRequest) String() string
- type CallResponse
- type InferenceClient
- type InferenceServer
- type Options
- type UnimplementedInferenceServer
- type UnsafeInferenceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_inference_inference_proto protoreflect.FileDescriptor
var Inference_ServiceDesc = grpc.ServiceDesc{ ServiceName: "inference.Inference", HandlerType: (*InferenceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Call", Handler: _Inference_Call_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/inference/inference.proto", }
Inference_ServiceDesc is the grpc.ServiceDesc for Inference service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInferenceServer ¶
func RegisterInferenceServer(s grpc.ServiceRegistrar, srv InferenceServer)
Types ¶
type CallRequest ¶
type CallRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Arguments map[string]string `` /* 159-byte string literal not displayed */ Options *Options `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*CallRequest) Descriptor
deprecated
func (*CallRequest) Descriptor() ([]byte, []int)
Deprecated: Use CallRequest.ProtoReflect.Descriptor instead.
func (*CallRequest) GetArguments ¶
func (x *CallRequest) GetArguments() map[string]string
func (*CallRequest) GetName ¶
func (x *CallRequest) GetName() string
func (*CallRequest) GetOptions ¶
func (x *CallRequest) GetOptions() *Options
func (*CallRequest) GetVersion ¶
func (x *CallRequest) GetVersion() string
func (*CallRequest) ProtoMessage ¶
func (*CallRequest) ProtoMessage()
func (*CallRequest) ProtoReflect ¶
func (x *CallRequest) ProtoReflect() protoreflect.Message
func (*CallRequest) Reset ¶
func (x *CallRequest) Reset()
func (*CallRequest) String ¶
func (x *CallRequest) String() string
type CallResponse ¶
type CallResponse struct { Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*CallResponse) Descriptor
deprecated
func (*CallResponse) Descriptor() ([]byte, []int)
Deprecated: Use CallResponse.ProtoReflect.Descriptor instead.
func (*CallResponse) GetPayload ¶
func (x *CallResponse) GetPayload() []byte
func (*CallResponse) ProtoMessage ¶
func (*CallResponse) ProtoMessage()
func (*CallResponse) ProtoReflect ¶
func (x *CallResponse) ProtoReflect() protoreflect.Message
func (*CallResponse) Reset ¶
func (x *CallResponse) Reset()
func (*CallResponse) String ¶
func (x *CallResponse) String() string
type InferenceClient ¶
type InferenceClient interface {
Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
}
InferenceClient is the client API for Inference 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 NewInferenceClient ¶
func NewInferenceClient(cc grpc.ClientConnInterface) InferenceClient
type InferenceServer ¶
type InferenceServer interface { Call(context.Context, *CallRequest) (*CallResponse, error) // contains filtered or unexported methods }
InferenceServer is the server API for Inference service. All implementations must embed UnimplementedInferenceServer for forward compatibility
type Options ¶
type Options struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*Options) Descriptor
deprecated
func (*Options) GetNamespace ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) ProtoReflect ¶
func (x *Options) ProtoReflect() protoreflect.Message
type UnimplementedInferenceServer ¶
type UnimplementedInferenceServer struct { }
UnimplementedInferenceServer must be embedded to have forward compatible implementations.
func (UnimplementedInferenceServer) Call ¶
func (UnimplementedInferenceServer) Call(context.Context, *CallRequest) (*CallResponse, error)
type UnsafeInferenceServer ¶
type UnsafeInferenceServer interface {
// contains filtered or unexported methods
}
UnsafeInferenceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InferenceServer will result in compilation errors.