master

package
v3.2.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0, MIT Imports: 39 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DB = "db"

	NodeID = "node_id"
)
View Source
const CronInterval = 60

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context) (err error)

Auth valid whether username is root and password equal config

func ExportToClusterHandler

func ExportToClusterHandler(router *gin.Engine, masterService *masterService)

func ExportToMonitorHandler

func ExportToMonitorHandler(router *gin.Engine, monitorService *monitorService)

Types

type Server

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

func NewServer

func NewServer(ctx context.Context) (*Server, error)

func (*Server) Start

func (s *Server) Start() (err error)

func (*Server) StartCleanJon

func (s *Server) StartCleanJon(ctx context.Context)

the job check partition infos and fix it

func (*Server) Stop

func (s *Server) Stop()

func (*Server) WatchServerJob

func (s *Server) WatchServerJob(ctx context.Context, cli *client.Client) error

WatchServerJob watch ps server put and delete

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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