Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_model_proto protoreflect.FileDescriptor
Functions ¶
func RegisterModelServer ¶
func RegisterModelServer(s *grpc.Server, srv ModelServer)
Types ¶
type ModelClient ¶
type ModelClient interface {
Exec(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
ModelClient is the client API for Model service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewModelClient ¶
func NewModelClient(cc grpc.ClientConnInterface) ModelClient
type ModelServer ¶
ModelServer is the server API for Model service.
type Request ¶
type Request struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetPayload ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Response []byte `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetResponse ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedModelServer ¶
type UnimplementedModelServer struct { }
UnimplementedModelServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.