Documentation
¶
Overview ¶
Package grpcservice implements the grpc server methods
Index ¶
- func NewRunsResponse(runs []*types.Run) *mlsolidv1.RunsResponse
- func ParseError(err error) error
- func ParseMetric(m types.Metric) *mlsolidv1.Metric
- func ParseMetrics(m map[string]types.Metric) map[string]*mlsolidv1.Metric
- func StartServer(port string, ctrl *controllers.Controller)
- type Service
- func (s *Service) AddArtifact(stream mlsolidv1grpc.MlsolidService_AddArtifactServer) error
- func (s *Service) AddMetrics(ctx context.Context, req *mlsolidv1.AddMetricsRequest) (*mlsolidv1.AddMetricsResponse, error)
- func (s *Service) AddModelEntry(ctx context.Context, req *mlsolidv1.AddModelEntryRequest) (*mlsolidv1.AddModelEntryResponse, error)
- func (s *Service) Artifact(req *mlsolidv1.ArtifactRequest, ...) error
- func (s *Service) CreateModelRegistry(ctx context.Context, req *mlsolidv1.CreateModelRegistryRequest) (*mlsolidv1.CreateModelRegistryResponse, error)
- func (s *Service) CreateRun(ctx context.Context, req *mlsolidv1.CreateRunRequest) (*mlsolidv1.CreateRunResponse, error)
- func (s *Service) Experiment(ctx context.Context, req *mlsolidv1.ExperimentRequest) (*mlsolidv1.ExperimentResponse, error)
- func (s *Service) Experiments(ctx context.Context, _ *mlsolidv1.ExperimentsRequest) (*mlsolidv1.ExperimentsResponse, error)
- func (s *Service) ModelRegistry(ctx context.Context, req *mlsolidv1.ModelRegistryRequest) (*mlsolidv1.ModelRegistryResponse, error)
- func (s *Service) Run(ctx context.Context, req *mlsolidv1.RunRequest) (*mlsolidv1.RunResponse, error)
- func (s *Service) Runs(ctx context.Context, req *mlsolidv1.RunsRequest) (*mlsolidv1.RunsResponse, error)
- func (s *Service) StreamTaggedModel(req *mlsolidv1.StreamTaggedModelRequest, ...) error
- func (s *Service) TagModel(ctx context.Context, req *mlsolidv1.TagModelRequest) (*mlsolidv1.TagModelResponse, error)
- func (s *Service) TaggedModel(ctx context.Context, req *mlsolidv1.TaggedModelRequest) (*mlsolidv1.TaggedModelResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRunsResponse ¶
func NewRunsResponse(runs []*types.Run) *mlsolidv1.RunsResponse
func ParseError ¶
func StartServer ¶
func StartServer(port string, ctrl *controllers.Controller)
StartServer starts a grpc server instance
Types ¶
type Service ¶
type Service struct {
mlsolidv1grpc.UnimplementedMlsolidServiceServer
Controller *controllers.Controller
}
func (*Service) AddArtifact ¶
func (s *Service) AddArtifact(stream mlsolidv1grpc.MlsolidService_AddArtifactServer) error
func (*Service) AddMetrics ¶
func (s *Service) AddMetrics(ctx context.Context, req *mlsolidv1.AddMetricsRequest, ) (*mlsolidv1.AddMetricsResponse, error)
func (*Service) AddModelEntry ¶
func (s *Service) AddModelEntry(ctx context.Context, req *mlsolidv1.AddModelEntryRequest, ) (*mlsolidv1.AddModelEntryResponse, error)
func (*Service) Artifact ¶
func (s *Service) Artifact(req *mlsolidv1.ArtifactRequest, stream mlsolidv1grpc.MlsolidService_ArtifactServer) error
func (*Service) CreateModelRegistry ¶
func (s *Service) CreateModelRegistry(ctx context.Context, req *mlsolidv1.CreateModelRegistryRequest, ) (*mlsolidv1.CreateModelRegistryResponse, error)
func (*Service) CreateRun ¶
func (s *Service) CreateRun(ctx context.Context, req *mlsolidv1.CreateRunRequest, ) (*mlsolidv1.CreateRunResponse, error)
func (*Service) Experiment ¶
func (s *Service) Experiment(ctx context.Context, req *mlsolidv1.ExperimentRequest, ) (*mlsolidv1.ExperimentResponse, error)
func (*Service) Experiments ¶
func (s *Service) Experiments(ctx context.Context, _ *mlsolidv1.ExperimentsRequest, ) (*mlsolidv1.ExperimentsResponse, error)
func (*Service) ModelRegistry ¶
func (s *Service) ModelRegistry(ctx context.Context, req *mlsolidv1.ModelRegistryRequest, ) (*mlsolidv1.ModelRegistryResponse, error)
func (*Service) Run ¶
func (s *Service) Run(ctx context.Context, req *mlsolidv1.RunRequest) (*mlsolidv1.RunResponse, error)
func (*Service) Runs ¶
func (s *Service) Runs(ctx context.Context, req *mlsolidv1.RunsRequest) (*mlsolidv1.RunsResponse, error)
func (*Service) StreamTaggedModel ¶
func (s *Service) StreamTaggedModel(req *mlsolidv1.StreamTaggedModelRequest, stream mlsolidv1grpc.MlsolidService_StreamTaggedModelServer, ) error
func (*Service) TagModel ¶
func (s *Service) TagModel(ctx context.Context, req *mlsolidv1.TagModelRequest) (*mlsolidv1.TagModelResponse, error)
func (*Service) TaggedModel ¶
func (s *Service) TaggedModel(ctx context.Context, req *mlsolidv1.TaggedModelRequest) (*mlsolidv1.TaggedModelResponse, error, )
Click to show internal directories.
Click to hide internal directories.