Documentation ¶
Index ¶
- Variables
- func RegisterTrainerServer(s grpc.ServiceRegistrar, srv TrainerServer)
- type TrainGNNRequest
- func (*TrainGNNRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TrainGNNRequest) GetDataset() []byte
- func (*TrainGNNRequest) ProtoMessage()
- func (x *TrainGNNRequest) ProtoReflect() protoreflect.Message
- func (x *TrainGNNRequest) Reset()
- func (x *TrainGNNRequest) String() string
- func (m *TrainGNNRequest) Validate() error
- func (m *TrainGNNRequest) ValidateAll() error
- type TrainGNNRequestMultiError
- type TrainGNNRequestValidationError
- func (e TrainGNNRequestValidationError) Cause() error
- func (e TrainGNNRequestValidationError) Error() string
- func (e TrainGNNRequestValidationError) ErrorName() string
- func (e TrainGNNRequestValidationError) Field() string
- func (e TrainGNNRequestValidationError) Key() bool
- func (e TrainGNNRequestValidationError) Reason() string
- type TrainMLPRequest
- func (*TrainMLPRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TrainMLPRequest) GetDataset() []byte
- func (*TrainMLPRequest) ProtoMessage()
- func (x *TrainMLPRequest) ProtoReflect() protoreflect.Message
- func (x *TrainMLPRequest) Reset()
- func (x *TrainMLPRequest) String() string
- func (m *TrainMLPRequest) Validate() error
- func (m *TrainMLPRequest) ValidateAll() error
- type TrainMLPRequestMultiError
- type TrainMLPRequestValidationError
- func (e TrainMLPRequestValidationError) Cause() error
- func (e TrainMLPRequestValidationError) Error() string
- func (e TrainMLPRequestValidationError) ErrorName() string
- func (e TrainMLPRequestValidationError) Field() string
- func (e TrainMLPRequestValidationError) Key() bool
- func (e TrainMLPRequestValidationError) Reason() string
- type TrainRequest
- func (*TrainRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TrainRequest) GetHostname() string
- func (x *TrainRequest) GetIp() string
- func (m *TrainRequest) GetRequest() isTrainRequest_Request
- func (x *TrainRequest) GetTrainGnnRequest() *TrainGNNRequest
- func (x *TrainRequest) GetTrainMlpRequest() *TrainMLPRequest
- func (*TrainRequest) ProtoMessage()
- func (x *TrainRequest) ProtoReflect() protoreflect.Message
- func (x *TrainRequest) Reset()
- func (x *TrainRequest) String() string
- func (m *TrainRequest) Validate() error
- func (m *TrainRequest) ValidateAll() error
- type TrainRequestMultiError
- type TrainRequestValidationError
- func (e TrainRequestValidationError) Cause() error
- func (e TrainRequestValidationError) Error() string
- func (e TrainRequestValidationError) ErrorName() string
- func (e TrainRequestValidationError) Field() string
- func (e TrainRequestValidationError) Key() bool
- func (e TrainRequestValidationError) Reason() string
- type TrainRequest_TrainGnnRequest
- type TrainRequest_TrainMlpRequest
- type TrainerClient
- type TrainerServer
- type Trainer_TrainClient
- type Trainer_TrainServer
- type UnimplementedTrainerServer
- type UnsafeTrainerServer
Constants ¶
This section is empty.
Variables ¶
var File_pkg_apis_trainer_v1_trainer_proto protoreflect.FileDescriptor
var Trainer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "trainer.v1.Trainer", HandlerType: (*TrainerServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Train", Handler: _Trainer_Train_Handler, ClientStreams: true, }, }, Metadata: "pkg/apis/trainer/v1/trainer.proto", }
Trainer_ServiceDesc is the grpc.ServiceDesc for Trainer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTrainerServer ¶
func RegisterTrainerServer(s grpc.ServiceRegistrar, srv TrainerServer)
Types ¶
type TrainGNNRequest ¶ added in v1.8.3
type TrainGNNRequest struct { // Dataset of training GNN. Dataset []byte `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` // contains filtered or unexported fields }
TrainGNNRequest represents to train GNN model request of TrainRequest.
func (*TrainGNNRequest) Descriptor
deprecated
added in
v1.8.3
func (*TrainGNNRequest) Descriptor() ([]byte, []int)
Deprecated: Use TrainGNNRequest.ProtoReflect.Descriptor instead.
func (*TrainGNNRequest) GetDataset ¶ added in v1.8.3
func (x *TrainGNNRequest) GetDataset() []byte
func (*TrainGNNRequest) ProtoMessage ¶ added in v1.8.3
func (*TrainGNNRequest) ProtoMessage()
func (*TrainGNNRequest) ProtoReflect ¶ added in v1.8.3
func (x *TrainGNNRequest) ProtoReflect() protoreflect.Message
func (*TrainGNNRequest) Reset ¶ added in v1.8.3
func (x *TrainGNNRequest) Reset()
func (*TrainGNNRequest) String ¶ added in v1.8.3
func (x *TrainGNNRequest) String() string
func (*TrainGNNRequest) Validate ¶ added in v1.8.3
func (m *TrainGNNRequest) Validate() error
Validate checks the field values on TrainGNNRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TrainGNNRequest) ValidateAll ¶ added in v1.8.3
func (m *TrainGNNRequest) ValidateAll() error
ValidateAll checks the field values on TrainGNNRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TrainGNNRequestMultiError, or nil if none found.
type TrainGNNRequestMultiError ¶ added in v1.8.3
type TrainGNNRequestMultiError []error
TrainGNNRequestMultiError is an error wrapping multiple validation errors returned by TrainGNNRequest.ValidateAll() if the designated constraints aren't met.
func (TrainGNNRequestMultiError) AllErrors ¶ added in v1.8.3
func (m TrainGNNRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TrainGNNRequestMultiError) Error ¶ added in v1.8.3
func (m TrainGNNRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TrainGNNRequestValidationError ¶ added in v1.8.3
type TrainGNNRequestValidationError struct {
// contains filtered or unexported fields
}
TrainGNNRequestValidationError is the validation error returned by TrainGNNRequest.Validate if the designated constraints aren't met.
func (TrainGNNRequestValidationError) Cause ¶ added in v1.8.3
func (e TrainGNNRequestValidationError) Cause() error
Cause function returns cause value.
func (TrainGNNRequestValidationError) Error ¶ added in v1.8.3
func (e TrainGNNRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TrainGNNRequestValidationError) ErrorName ¶ added in v1.8.3
func (e TrainGNNRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TrainGNNRequestValidationError) Field ¶ added in v1.8.3
func (e TrainGNNRequestValidationError) Field() string
Field function returns field value.
func (TrainGNNRequestValidationError) Key ¶ added in v1.8.3
func (e TrainGNNRequestValidationError) Key() bool
Key function returns key value.
func (TrainGNNRequestValidationError) Reason ¶ added in v1.8.3
func (e TrainGNNRequestValidationError) Reason() string
Reason function returns reason value.
type TrainMLPRequest ¶ added in v1.8.3
type TrainMLPRequest struct { // Dataset of training MLP. Dataset []byte `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` // contains filtered or unexported fields }
TrainMLPRequest represents to train MLP model request of TrainRequest.
func (*TrainMLPRequest) Descriptor
deprecated
added in
v1.8.3
func (*TrainMLPRequest) Descriptor() ([]byte, []int)
Deprecated: Use TrainMLPRequest.ProtoReflect.Descriptor instead.
func (*TrainMLPRequest) GetDataset ¶ added in v1.8.3
func (x *TrainMLPRequest) GetDataset() []byte
func (*TrainMLPRequest) ProtoMessage ¶ added in v1.8.3
func (*TrainMLPRequest) ProtoMessage()
func (*TrainMLPRequest) ProtoReflect ¶ added in v1.8.3
func (x *TrainMLPRequest) ProtoReflect() protoreflect.Message
func (*TrainMLPRequest) Reset ¶ added in v1.8.3
func (x *TrainMLPRequest) Reset()
func (*TrainMLPRequest) String ¶ added in v1.8.3
func (x *TrainMLPRequest) String() string
func (*TrainMLPRequest) Validate ¶ added in v1.8.3
func (m *TrainMLPRequest) Validate() error
Validate checks the field values on TrainMLPRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TrainMLPRequest) ValidateAll ¶ added in v1.8.3
func (m *TrainMLPRequest) ValidateAll() error
ValidateAll checks the field values on TrainMLPRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TrainMLPRequestMultiError, or nil if none found.
type TrainMLPRequestMultiError ¶ added in v1.8.3
type TrainMLPRequestMultiError []error
TrainMLPRequestMultiError is an error wrapping multiple validation errors returned by TrainMLPRequest.ValidateAll() if the designated constraints aren't met.
func (TrainMLPRequestMultiError) AllErrors ¶ added in v1.8.3
func (m TrainMLPRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TrainMLPRequestMultiError) Error ¶ added in v1.8.3
func (m TrainMLPRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TrainMLPRequestValidationError ¶ added in v1.8.3
type TrainMLPRequestValidationError struct {
// contains filtered or unexported fields
}
TrainMLPRequestValidationError is the validation error returned by TrainMLPRequest.Validate if the designated constraints aren't met.
func (TrainMLPRequestValidationError) Cause ¶ added in v1.8.3
func (e TrainMLPRequestValidationError) Cause() error
Cause function returns cause value.
func (TrainMLPRequestValidationError) Error ¶ added in v1.8.3
func (e TrainMLPRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TrainMLPRequestValidationError) ErrorName ¶ added in v1.8.3
func (e TrainMLPRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TrainMLPRequestValidationError) Field ¶ added in v1.8.3
func (e TrainMLPRequestValidationError) Field() string
Field function returns field value.
func (TrainMLPRequestValidationError) Key ¶ added in v1.8.3
func (e TrainMLPRequestValidationError) Key() bool
Key function returns key value.
func (TrainMLPRequestValidationError) Reason ¶ added in v1.8.3
func (e TrainMLPRequestValidationError) Reason() string
Reason function returns reason value.
type TrainRequest ¶
type TrainRequest struct { // Scheduler hostname. Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` // Scheduler ip. Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` // Types that are assignable to Request: // // *TrainRequest_TrainGnnRequest // *TrainRequest_TrainMlpRequest Request isTrainRequest_Request `protobuf_oneof:"request"` // contains filtered or unexported fields }
TrainRequest represents request of Train.
func (*TrainRequest) Descriptor
deprecated
func (*TrainRequest) Descriptor() ([]byte, []int)
Deprecated: Use TrainRequest.ProtoReflect.Descriptor instead.
func (*TrainRequest) GetHostname ¶
func (x *TrainRequest) GetHostname() string
func (*TrainRequest) GetIp ¶
func (x *TrainRequest) GetIp() string
func (*TrainRequest) GetRequest ¶
func (m *TrainRequest) GetRequest() isTrainRequest_Request
func (*TrainRequest) GetTrainGnnRequest ¶ added in v1.8.3
func (x *TrainRequest) GetTrainGnnRequest() *TrainGNNRequest
func (*TrainRequest) GetTrainMlpRequest ¶ added in v1.8.3
func (x *TrainRequest) GetTrainMlpRequest() *TrainMLPRequest
func (*TrainRequest) ProtoMessage ¶
func (*TrainRequest) ProtoMessage()
func (*TrainRequest) ProtoReflect ¶
func (x *TrainRequest) ProtoReflect() protoreflect.Message
func (*TrainRequest) Reset ¶
func (x *TrainRequest) Reset()
func (*TrainRequest) String ¶
func (x *TrainRequest) String() string
func (*TrainRequest) Validate ¶
func (m *TrainRequest) Validate() error
Validate checks the field values on TrainRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TrainRequest) ValidateAll ¶
func (m *TrainRequest) ValidateAll() error
ValidateAll checks the field values on TrainRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TrainRequestMultiError, or nil if none found.
type TrainRequestMultiError ¶
type TrainRequestMultiError []error
TrainRequestMultiError is an error wrapping multiple validation errors returned by TrainRequest.ValidateAll() if the designated constraints aren't met.
func (TrainRequestMultiError) AllErrors ¶
func (m TrainRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TrainRequestMultiError) Error ¶
func (m TrainRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TrainRequestValidationError ¶
type TrainRequestValidationError struct {
// contains filtered or unexported fields
}
TrainRequestValidationError is the validation error returned by TrainRequest.Validate if the designated constraints aren't met.
func (TrainRequestValidationError) Cause ¶
func (e TrainRequestValidationError) Cause() error
Cause function returns cause value.
func (TrainRequestValidationError) Error ¶
func (e TrainRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TrainRequestValidationError) ErrorName ¶
func (e TrainRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TrainRequestValidationError) Field ¶
func (e TrainRequestValidationError) Field() string
Field function returns field value.
func (TrainRequestValidationError) Key ¶
func (e TrainRequestValidationError) Key() bool
Key function returns key value.
func (TrainRequestValidationError) Reason ¶
func (e TrainRequestValidationError) Reason() string
Reason function returns reason value.
type TrainRequest_TrainGnnRequest ¶ added in v1.8.3
type TrainRequest_TrainGnnRequest struct {
TrainGnnRequest *TrainGNNRequest `protobuf:"bytes,3,opt,name=train_gnn_request,json=trainGnnRequest,proto3,oneof"`
}
type TrainRequest_TrainMlpRequest ¶ added in v1.8.3
type TrainRequest_TrainMlpRequest struct {
TrainMlpRequest *TrainMLPRequest `protobuf:"bytes,4,opt,name=train_mlp_request,json=trainMlpRequest,proto3,oneof"`
}
type TrainerClient ¶
type TrainerClient interface { // Train trains models of scheduler using dataset. Train(ctx context.Context, opts ...grpc.CallOption) (Trainer_TrainClient, error) }
TrainerClient is the client API for Trainer 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 NewTrainerClient ¶
func NewTrainerClient(cc grpc.ClientConnInterface) TrainerClient
type TrainerServer ¶
type TrainerServer interface { // Train trains models of scheduler using dataset. Train(Trainer_TrainServer) error }
TrainerServer is the server API for Trainer service. All implementations should embed UnimplementedTrainerServer for forward compatibility
type Trainer_TrainClient ¶
type Trainer_TrainClient interface { Send(*TrainRequest) error CloseAndRecv() (*emptypb.Empty, error) grpc.ClientStream }
type Trainer_TrainServer ¶
type Trainer_TrainServer interface { SendAndClose(*emptypb.Empty) error Recv() (*TrainRequest, error) grpc.ServerStream }
type UnimplementedTrainerServer ¶
type UnimplementedTrainerServer struct { }
UnimplementedTrainerServer should be embedded to have forward compatible implementations.
func (UnimplementedTrainerServer) Train ¶
func (UnimplementedTrainerServer) Train(Trainer_TrainServer) error
type UnsafeTrainerServer ¶
type UnsafeTrainerServer interface {
// contains filtered or unexported methods
}
UnsafeTrainerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TrainerServer will result in compilation errors.