Documentation ¶
Index ¶
- Variables
- func DiskUsage(path string) (diskFree int64)
- type CommandExec
- type Forward
- type MountPathInfo
- type MysqlInfo
- type PortRequest
- type Request
- type Requst
- type Server
- func (s *Server) AddHealthHandler()
- func (s *Server) CheckHealth(ctx context.Context, c *pb.Check) (*pb.Result, error)
- func (s *Server) ExecuteCommand(stream pb.RouteCall_ExecuteCommandServer) error
- func (s *Server) ExecuteRequest(stream pb.RouteCall_ExecuteRequestServer) error
- func (s *Server) ExecuteSql(stream pb.RouteCall_ExecuteSqlServer) error
- func (s *Server) HandlerInit()
- func (s *Server) InitGRpcServer(port int)
- func (s *Server) Start() error
- type ServerAddr
- type StorageStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var DomainMap = make(map[string]string)
Functions ¶
Types ¶
type CommandExec ¶
type CommandExec struct {
CommandLine string `json:"command"`
}
func (*CommandExec) ExecuteCommand ¶
func (C *CommandExec) ExecuteCommand() (err error)
type MountPathInfo ¶
type MysqlInfo ¶
type PortRequest ¶
type PortRequest struct {
Ports []int `json:"ports"`
}
func (*PortRequest) StartServers ¶
func (p *PortRequest) StartServers() error
type Requst ¶
type Server ¶
func (*Server) AddHealthHandler ¶
func (s *Server) AddHealthHandler()
func (*Server) CheckHealth ¶
func (*Server) ExecuteCommand ¶
func (s *Server) ExecuteCommand(stream pb.RouteCall_ExecuteCommandServer) error
func (*Server) ExecuteRequest ¶
func (s *Server) ExecuteRequest(stream pb.RouteCall_ExecuteRequestServer) error
func (*Server) ExecuteSql ¶
func (s *Server) ExecuteSql(stream pb.RouteCall_ExecuteSqlServer) error
func (*Server) HandlerInit ¶
func (s *Server) HandlerInit()
func (*Server) InitGRpcServer ¶
type ServerAddr ¶
func (*ServerAddr) StartNetCheck ¶
func (s *ServerAddr) StartNetCheck() (err error)
type StorageStatus ¶
Click to show internal directories.
Click to hide internal directories.