Documentation
¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- func RegisterManagerServiceServer(s grpc.ServiceRegistrar, srv ManagerServiceServer)
- type Algorithm
- type Computation
- func (*Computation) Descriptor() ([]byte, []int)deprecated
- func (x *Computation) GetAlgorithms() []*Algorithm
- func (x *Computation) GetDatasets() []*Dataset
- func (x *Computation) GetDescription() string
- func (x *Computation) GetId() string
- func (x *Computation) GetName() string
- func (x *Computation) GetResultConsumers() []string
- func (*Computation) ProtoMessage()
- func (x *Computation) ProtoReflect() protoreflect.Message
- func (x *Computation) Reset()
- func (x *Computation) String() string
- type Dataset
- type ManagerServiceClient
- type ManagerServiceServer
- type RunRequest
- type RunResponse
- type Service
- type UnimplementedManagerServiceServer
- type UnsafeManagerServiceServer
Constants ¶
const (
ManagerService_Run_FullMethodName = "/manager.ManagerService/Run"
)
Variables ¶
var ( // ErrMalformedEntity indicates malformed entity specification (e.g. // invalid username or password). ErrMalformedEntity = errors.New("malformed entity specification") // when accessing a protected resource. ErrUnauthorizedAccess = errors.New("missing or invalid credentials provided") // ErrNotFound indicates a non-existent entity request. ErrNotFound = errors.New("entity not found") // ErrFailedToAllocatePort indicates no free port was found on host. ErrFailedToAllocatePort = errors.New("failed to allocate free port on host") )
var File_manager_manager_proto protoreflect.FileDescriptor
var ManagerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.ManagerService", HandlerType: (*ManagerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Run", Handler: _ManagerService_Run_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "manager/manager.proto", }
ManagerService_ServiceDesc is the grpc.ServiceDesc for ManagerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterManagerServiceServer ¶
func RegisterManagerServiceServer(s grpc.ServiceRegistrar, srv ManagerServiceServer)
Types ¶
type Algorithm ¶
type Algorithm struct {
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Algorithm) Descriptor
deprecated
func (*Algorithm) GetProvider ¶
func (*Algorithm) ProtoMessage ¶
func (*Algorithm) ProtoMessage()
func (*Algorithm) ProtoReflect ¶
func (x *Algorithm) ProtoReflect() protoreflect.Message
type Computation ¶
type Computation struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Datasets []*Dataset `protobuf:"bytes,4,rep,name=datasets,proto3" json:"datasets,omitempty"`
Algorithms []*Algorithm `protobuf:"bytes,5,rep,name=algorithms,proto3" json:"algorithms,omitempty"`
ResultConsumers []string `protobuf:"bytes,6,rep,name=result_consumers,json=resultConsumers,proto3" json:"result_consumers,omitempty"`
// contains filtered or unexported fields
}
func (*Computation) Descriptor
deprecated
func (*Computation) Descriptor() ([]byte, []int)
Deprecated: Use Computation.ProtoReflect.Descriptor instead.
func (*Computation) GetAlgorithms ¶
func (x *Computation) GetAlgorithms() []*Algorithm
func (*Computation) GetDatasets ¶
func (x *Computation) GetDatasets() []*Dataset
func (*Computation) GetDescription ¶
func (x *Computation) GetDescription() string
func (*Computation) GetId ¶
func (x *Computation) GetId() string
func (*Computation) GetName ¶
func (x *Computation) GetName() string
func (*Computation) GetResultConsumers ¶
func (x *Computation) GetResultConsumers() []string
func (*Computation) ProtoMessage ¶
func (*Computation) ProtoMessage()
func (*Computation) ProtoReflect ¶
func (x *Computation) ProtoReflect() protoreflect.Message
func (*Computation) Reset ¶
func (x *Computation) Reset()
func (*Computation) String ¶
func (x *Computation) String() string
type Dataset ¶
type Dataset struct {
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Dataset) Descriptor
deprecated
func (*Dataset) GetProvider ¶
func (*Dataset) ProtoMessage ¶
func (*Dataset) ProtoMessage()
func (*Dataset) ProtoReflect ¶
func (x *Dataset) ProtoReflect() protoreflect.Message
type ManagerServiceClient ¶
type ManagerServiceClient interface {
Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error)
}
ManagerServiceClient is the client API for ManagerService 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 NewManagerServiceClient ¶
func NewManagerServiceClient(cc grpc.ClientConnInterface) ManagerServiceClient
type ManagerServiceServer ¶
type ManagerServiceServer interface {
Run(context.Context, *RunRequest) (*RunResponse, error)
// contains filtered or unexported methods
}
ManagerServiceServer is the server API for ManagerService service. All implementations must embed UnimplementedManagerServiceServer for forward compatibility
type RunRequest ¶
type RunRequest struct {
Computation *Computation `protobuf:"bytes,1,opt,name=computation,proto3" json:"computation,omitempty"`
// contains filtered or unexported fields
}
func (*RunRequest) Descriptor
deprecated
func (*RunRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunRequest.ProtoReflect.Descriptor instead.
func (*RunRequest) GetComputation ¶
func (x *RunRequest) GetComputation() *Computation
func (*RunRequest) ProtoMessage ¶
func (*RunRequest) ProtoMessage()
func (*RunRequest) ProtoReflect ¶
func (x *RunRequest) ProtoReflect() protoreflect.Message
func (*RunRequest) Reset ¶
func (x *RunRequest) Reset()
func (*RunRequest) String ¶
func (x *RunRequest) String() string
type RunResponse ¶
type RunResponse struct {
AgentAddress string `protobuf:"bytes,1,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"`
// contains filtered or unexported fields
}
func (*RunResponse) Descriptor
deprecated
func (*RunResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.
func (*RunResponse) GetAgentAddress ¶
func (x *RunResponse) GetAgentAddress() string
func (*RunResponse) ProtoMessage ¶
func (*RunResponse) ProtoMessage()
func (*RunResponse) ProtoReflect ¶
func (x *RunResponse) ProtoReflect() protoreflect.Message
func (*RunResponse) Reset ¶
func (x *RunResponse) Reset()
func (*RunResponse) String ¶
func (x *RunResponse) String() string
type Service ¶
type Service interface {
Run(ctx context.Context, c *Computation) (string, error)
}
Service specifies an API that must be fulfilled by the domain service implementation, and all of its decorators (e.g. logging & metrics).
type UnimplementedManagerServiceServer ¶
type UnimplementedManagerServiceServer struct {
}
UnimplementedManagerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedManagerServiceServer) Run ¶
func (UnimplementedManagerServiceServer) Run(context.Context, *RunRequest) (*RunResponse, error)
type UnsafeManagerServiceServer ¶
type UnsafeManagerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeManagerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagerServiceServer will result in compilation errors.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
|
http
Package http contains implementation of kit service HTTP API.
|
Package http contains implementation of kit service HTTP API. |
|
Package tracing provides tracing instrumentation for cocos auth service.
|
Package tracing provides tracing instrumentation for cocos auth service. |