Documentation ¶
Index ¶
- func ContainerLog(ctx *HandlerCtx)
- func ContainerPause(ctx *HandlerCtx)
- func ContainerRename(ctx *HandlerCtx)
- func ContainerRestart(ctx *HandlerCtx)
- func ContainerTop(ctx *HandlerCtx)
- func CreateHttpProxy(ctx *HandlerCtx)
- func CreateSocket5Proxy(ctx *HandlerCtx)
- func CreateTCPForward(ctx *HandlerCtx)
- func DockerImageRun(ctx *HandlerCtx)
- func DockerImages(ctx *HandlerCtx)
- func DockerInfo(ctx *HandlerCtx)
- func DockerPS(ctx *HandlerCtx)
- func DockerPull(ctx *HandlerCtx)
- func DockerRm(ctx *HandlerCtx)
- func DockerRmi(ctx *HandlerCtx)
- func DockerRun(ctx *HandlerCtx)
- func DockerStateS(ctx *HandlerCtx)
- func DockerStop(ctx *HandlerCtx)
- func EnvDeployedCheck(ctx *HandlerCtx)
- func ExecutableDeploy(ctx *HandlerCtx)
- func ExecutableKill(ctx *HandlerCtx)
- func ExecutablePIDLog(ctx *HandlerCtx)
- func ExecutableRunState(ctx *HandlerCtx)
- func GatewayRun(ctx *HandlerCtx)
- func GetSlavePathInfo(ctx *HandlerCtx)
- func Handle(c *protocol.UdpClient, s *protocol.Stream)
- func HaveDocker(ctx *HandlerCtx)
- func Hello(ctx *HandlerCtx)
- func InstallDocker(ctx *HandlerCtx)
- func InstallNginx(ctx *HandlerCtx)
- func MonitorCPU(slave string, performance *entity.SlavePerformance, ruleCPU float32)
- func MonitorConnectNum(slave string, connectNum, ruleConnectNum int)
- func MonitorDisk(slave string, performance *entity.SlavePerformance, ruleDisk int)
- func MonitorMEM(slave string, performance *entity.SlavePerformance, ruleMEM int64)
- func MonitorNotwork(slave string, performance *entity.SlavePerformance, ruleRx, ruleTx int)
- func OnlineNotice(slave, notice string)
- func ProcessKill(ctx *HandlerCtx)
- func ProjectExecutableRun(ctx *HandlerCtx)
- func RemoveDocker(ctx *HandlerCtx)
- func RemoveNginx(ctx *HandlerCtx)
- func ReportHostInfo(ctx *HandlerCtx)
- func RunUDPServer()
- func SlaveDiskInfo(ctx *HandlerCtx)
- func SlaveENVList(ctx *HandlerCtx)
- func SlaveHosts(ctx *HandlerCtx)
- func SlaveHostsUpdate(ctx *HandlerCtx)
- func SlavePathInfo(ctx *HandlerCtx)
- func SlavePortInfo(ctx *HandlerCtx)
- func SlaveProcessInfo(ctx *HandlerCtx)
- func SlaveProcessList(ctx *HandlerCtx)
- func UDPSend(slave string, cmd protocol.CommandCode, data []byte) (string, error)
- func UpdateHttpProxy(ctx *HandlerCtx)
- func UpdateSocket5Proxy(ctx *HandlerCtx)
- func UpdateTCPForward(ctx *HandlerCtx)
- func WarningNotice(ctx *HandlerCtx)
- type HandlerCtx
- type UDPHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonitorCPU ¶
func MonitorCPU(slave string, performance *entity.SlavePerformance, ruleCPU float32)
MonitorCPU cpu是否超标
func MonitorConnectNum ¶
MonitorConnectNum 连接数是否超标
func MonitorDisk ¶
func MonitorDisk(slave string, performance *entity.SlavePerformance, ruleDisk int)
MonitorDisk 磁盘存储是否超标
func MonitorMEM ¶
func MonitorMEM(slave string, performance *entity.SlavePerformance, ruleMEM int64)
MonitorMEM 内存是否超标
func MonitorNotwork ¶
func MonitorNotwork(slave string, performance *entity.SlavePerformance, ruleRx, ruleTx int)
MonitorNotwork 网络流量是否超标
Types ¶
type HandlerCtx ¶
type HandlerCtx struct { Cmd protocol.CommandCode IP string Stream *protocol.Stream }
HandlerCtx udp slave 的 Handler 的上下文
Click to show internal directories.
Click to hide internal directories.