Documentation ¶
Index ¶
- Variables
- func RegisterDBServer(s *grpc.Server, srv DBServer)
- type DBClient
- type DBServer
- type GetResultReply
- func (*GetResultReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetResultReply) GetNamespace() string
- func (x *GetResultReply) GetResults() []*KeyValue
- func (x *GetResultReply) GetTrialName() string
- func (*GetResultReply) ProtoMessage()
- func (x *GetResultReply) ProtoReflect() protoreflect.Message
- func (x *GetResultReply) Reset()
- func (x *GetResultReply) String() string
- type GetResultRequest
- func (*GetResultRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetResultRequest) GetNamespace() string
- func (x *GetResultRequest) GetTrialName() string
- func (*GetResultRequest) ProtoMessage()
- func (x *GetResultRequest) ProtoReflect() protoreflect.Message
- func (x *GetResultRequest) Reset()
- func (x *GetResultRequest) String() string
- type KeyValue
- type SaveResultReply
- type SaveResultRequest
- func (*SaveResultRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveResultRequest) GetNamespace() string
- func (x *SaveResultRequest) GetResults() []*KeyValue
- func (x *SaveResultRequest) GetTrialName() string
- func (*SaveResultRequest) ProtoMessage()
- func (x *SaveResultRequest) ProtoReflect() protoreflect.Message
- func (x *SaveResultRequest) Reset()
- func (x *SaveResultRequest) String() string
- type UnimplementedDBServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDBServer ¶
Types ¶
type DBClient ¶
type DBClient interface { SaveResult(ctx context.Context, in *SaveResultRequest, opts ...grpc.CallOption) (*SaveResultReply, error) GetResult(ctx context.Context, in *GetResultRequest, opts ...grpc.CallOption) (*GetResultReply, error) }
DBClient is the client API for DB service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDBClient ¶
func NewDBClient(cc grpc.ClientConnInterface) DBClient
type DBServer ¶
type DBServer interface { SaveResult(context.Context, *SaveResultRequest) (*SaveResultReply, error) GetResult(context.Context, *GetResultRequest) (*GetResultReply, error) }
DBServer is the server API for DB service.
type GetResultReply ¶
type GetResultReply struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` TrialName string `protobuf:"bytes,2,opt,name=trial_name,json=trialName,proto3" json:"trial_name,omitempty"` // string experiment_name = 3; Results []*KeyValue `protobuf:"bytes,4,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*GetResultReply) Descriptor
deprecated
func (*GetResultReply) Descriptor() ([]byte, []int)
Deprecated: Use GetResultReply.ProtoReflect.Descriptor instead.
func (*GetResultReply) GetNamespace ¶
func (x *GetResultReply) GetNamespace() string
func (*GetResultReply) GetResults ¶
func (x *GetResultReply) GetResults() []*KeyValue
func (*GetResultReply) GetTrialName ¶
func (x *GetResultReply) GetTrialName() string
func (*GetResultReply) ProtoMessage ¶
func (*GetResultReply) ProtoMessage()
func (*GetResultReply) ProtoReflect ¶
func (x *GetResultReply) ProtoReflect() protoreflect.Message
func (*GetResultReply) Reset ¶
func (x *GetResultReply) Reset()
func (*GetResultReply) String ¶
func (x *GetResultReply) String() string
type GetResultRequest ¶
type GetResultRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` TrialName string `protobuf:"bytes,2,opt,name=trial_name,json=trialName,proto3" json:"trial_name,omitempty"` // string experiment_name = 3; // contains filtered or unexported fields }
func (*GetResultRequest) Descriptor
deprecated
func (*GetResultRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetResultRequest.ProtoReflect.Descriptor instead.
func (*GetResultRequest) GetNamespace ¶
func (x *GetResultRequest) GetNamespace() string
func (*GetResultRequest) GetTrialName ¶
func (x *GetResultRequest) GetTrialName() string
func (*GetResultRequest) ProtoMessage ¶
func (*GetResultRequest) ProtoMessage()
func (*GetResultRequest) ProtoReflect ¶
func (x *GetResultRequest) ProtoReflect() protoreflect.Message
func (*GetResultRequest) Reset ¶
func (x *GetResultRequest) Reset()
func (*GetResultRequest) String ¶
func (x *GetResultRequest) String() string
type KeyValue ¶
type KeyValue struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*KeyValue) Descriptor
deprecated
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) ProtoReflect ¶
func (x *KeyValue) ProtoReflect() protoreflect.Message
type SaveResultReply ¶
type SaveResultReply struct {
// contains filtered or unexported fields
}
func (*SaveResultReply) Descriptor
deprecated
func (*SaveResultReply) Descriptor() ([]byte, []int)
Deprecated: Use SaveResultReply.ProtoReflect.Descriptor instead.
func (*SaveResultReply) ProtoMessage ¶
func (*SaveResultReply) ProtoMessage()
func (*SaveResultReply) ProtoReflect ¶
func (x *SaveResultReply) ProtoReflect() protoreflect.Message
func (*SaveResultReply) Reset ¶
func (x *SaveResultReply) Reset()
func (*SaveResultReply) String ¶
func (x *SaveResultReply) String() string
type SaveResultRequest ¶
type SaveResultRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` TrialName string `protobuf:"bytes,2,opt,name=trial_name,json=trialName,proto3" json:"trial_name,omitempty"` // string experiment_name = 3; Results []*KeyValue `protobuf:"bytes,4,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*SaveResultRequest) Descriptor
deprecated
func (*SaveResultRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveResultRequest.ProtoReflect.Descriptor instead.
func (*SaveResultRequest) GetNamespace ¶
func (x *SaveResultRequest) GetNamespace() string
func (*SaveResultRequest) GetResults ¶
func (x *SaveResultRequest) GetResults() []*KeyValue
func (*SaveResultRequest) GetTrialName ¶
func (x *SaveResultRequest) GetTrialName() string
func (*SaveResultRequest) ProtoMessage ¶
func (*SaveResultRequest) ProtoMessage()
func (*SaveResultRequest) ProtoReflect ¶
func (x *SaveResultRequest) ProtoReflect() protoreflect.Message
func (*SaveResultRequest) Reset ¶
func (x *SaveResultRequest) Reset()
func (*SaveResultRequest) String ¶
func (x *SaveResultRequest) String() string
type UnimplementedDBServer ¶
type UnimplementedDBServer struct { }
UnimplementedDBServer can be embedded to have forward compatible implementations.
func (*UnimplementedDBServer) GetResult ¶
func (*UnimplementedDBServer) GetResult(context.Context, *GetResultRequest) (*GetResultReply, error)
func (*UnimplementedDBServer) SaveResult ¶
func (*UnimplementedDBServer) SaveResult(context.Context, *SaveResultRequest) (*SaveResultReply, error)
Click to show internal directories.
Click to hide internal directories.