proxy

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 (*AgentServer) HandleModelEvent

func (a *AgentServer) HandleModelEvent(event ModelEvent) error

func (*AgentServer) Start

func (a *AgentServer) Start(agentPort uint) error

func (*AgentServer) Subscribe

type AgentSubscriber

type AgentSubscriber struct {
	// contains filtered or unexported fields
}

type ChainerConfig

type ChainerConfig struct {
	ChainerListenPort uint
}

type Config

func GetConfig

func GetConfig() *Config

func ParseArgs

func ParseArgs() *Config

type LogConfig

type LogConfig struct {
	LogLevel logrus.Level
}

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) 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 ProxyConfig struct {
	ProxyListenPort      uint
	ProxyEventBufferSize uint
}

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 (*ProxyServer) Start

func (p *ProxyServer) Start(port uint) error

func (*ProxyServer) UnloadModel

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(l logrus.FieldLogger, es <-chan ModelEvent, agentServer *AgentServer) *Scheduler

func (*Scheduler) Start

func (s *Scheduler) Start()

type ServerKey

type ServerKey struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL