inference

package
v0.0.0-...-9fce2f1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_inference_inference_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetNamespace

func (x *Options) GetNamespace() string

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) ProtoReflect

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

func (*Options) Reset

func (x *Options) Reset()

func (*Options) String

func (x *Options) String() string

type UnimplementedInferenceServer

type UnimplementedInferenceServer struct {
}

UnimplementedInferenceServer must be embedded to have forward compatible implementations.

func (UnimplementedInferenceServer) Call

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.

Jump to

Keyboard shortcuts

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