Documentation ¶
Index ¶
- Constants
- type AgentConfig
- type AgentServer
- func (a *AgentServer) AgentEvent(ctx context.Context, e *pba.ModelEventMessage) (*pba.ModelEventResponse, error)
- func (a *AgentServer) HandleModelEvent(event ModelEvent) error
- func (a *AgentServer) Start(agentPort uint) error
- func (a *AgentServer) Subscribe(request *pba.AgentSubscribeRequest, stream pba.AgentService_SubscribeServer) error
- type AgentSubscriber
- type ChainerConfig
- type Config
- type LogConfig
- type ModelEvent
- type ProxyChainer
- func (pc *ProxyChainer) PipelineUpdateEvent(_ context.Context, msg *chainer.PipelineUpdateStatusMessage) (*chainer.PipelineUpdateStatusResponse, error)
- func (pc *ProxyChainer) Start(port uint) error
- func (pc *ProxyChainer) SubscribePipelineUpdates(request *chainer.PipelineSubscriptionRequest, ...) error
- type ProxyConfig
- type ProxyServer
- type Scheduler
- type ServerKey
Constants ¶
View Source
const ( ProxyDefaultListenPort = 8100 ProxyDefaultEventBufferSize = 100 )
View Source
const (
AgentDefaultListenPort = 9005
)
View Source
const (
ChainerDefaultListenPort = 10101
)
View Source
const (
LogDefaultLevel = logrus.InfoLevel
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig struct {
AgentListenPort uint
}
type AgentServer ¶
type AgentServer struct { pba.UnimplementedAgentServiceServer // contains filtered or unexported fields }
func NewAgentServer ¶
func NewAgentServer(l logrus.FieldLogger) *AgentServer
func (*AgentServer) AgentEvent ¶
func (a *AgentServer) AgentEvent(ctx context.Context, e *pba.ModelEventMessage) (*pba.ModelEventResponse, error)
func (*AgentServer) HandleModelEvent ¶
func (a *AgentServer) HandleModelEvent(event ModelEvent) error
func (*AgentServer) Start ¶
func (a *AgentServer) Start(agentPort uint) error
func (*AgentServer) Subscribe ¶
func (a *AgentServer) Subscribe(request *pba.AgentSubscribeRequest, stream pba.AgentService_SubscribeServer) error
type AgentSubscriber ¶
type AgentSubscriber struct {
// contains filtered or unexported fields
}
type ChainerConfig ¶
type ChainerConfig struct {
ChainerListenPort uint
}
type Config ¶
type Config struct { LogConfig ProxyConfig AgentConfig ChainerConfig }
type ModelEvent ¶
type ModelEvent struct {
*agent.ModelOperationMessage
}
type ProxyChainer ¶
type ProxyChainer struct { chainer.UnimplementedChainerServer // contains filtered or unexported fields }
func New ¶
func New(logger log.FieldLogger) *ProxyChainer
func (*ProxyChainer) PipelineUpdateEvent ¶
func (pc *ProxyChainer) PipelineUpdateEvent( _ context.Context, msg *chainer.PipelineUpdateStatusMessage, ) (*chainer.PipelineUpdateStatusResponse, error)
func (*ProxyChainer) Start ¶
func (pc *ProxyChainer) Start(port uint) error
func (*ProxyChainer) SubscribePipelineUpdates ¶
func (pc *ProxyChainer) SubscribePipelineUpdates( request *chainer.PipelineSubscriptionRequest, subscription chainer.Chainer_SubscribePipelineUpdatesServer, ) error
type ProxyConfig ¶
type ProxyServer ¶
type ProxyServer struct { pb.UnimplementedSchedulerProxyServer // contains filtered or unexported fields }
func NewProxyServer ¶
func NewProxyServer(logger log.FieldLogger, es chan<- ModelEvent) *ProxyServer
func (*ProxyServer) LoadModel ¶
func (p *ProxyServer) LoadModel(ctx context.Context, r *pb.LoadModelRequest) (*pb.LoadModelResponse, error)
func (*ProxyServer) Start ¶
func (p *ProxyServer) Start(port uint) error
func (*ProxyServer) UnloadModel ¶
func (p *ProxyServer) UnloadModel(ctx context.Context, r *pb.UnloadModelRequest) (*pb.UnloadModelResponse, error)
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func NewScheduler(l logrus.FieldLogger, es <-chan ModelEvent, agentServer *AgentServer) *Scheduler
Click to show internal directories.
Click to hide internal directories.