admin

package
v0.0.0-...-135b9b9 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

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

Admin 控制台实现类

func NewAdminApp

func NewAdminApp(srv iServerAdminCtrl) *Admin

NewAdminApp 创建控制台app

func (*Admin) ConfigHTTPAdmin

func (app *Admin) ConfigHTTPAdmin(addr string, port uint64, admin string)

ConfigHTTPAdmin 配置控制台相关 port: http命令行端口 admin: 允许执行http命令的域名或IP地址

func (*Admin) GetConsolePort

func (app *Admin) GetConsolePort() uint64

GetConsolePort 获取控制台端口

func (*Admin) ProcCmds

func (app *Admin) ProcCmds()

ProcCmds 处理命令行

func (*Admin) StartConsole

func (app *Admin) StartConsole()

StartConsole 启动命令行服务

func (*Admin) StartHTTP

func (app *Admin) StartHTTP()

StartHTTP 启动HTTP处理命令行服务

type CmdReq

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

CmdReq 命令行

type CmdResp

type CmdResp struct {
	Result    int
	ResultStr string
	Data      []byte
}

CmdResp 命令行运行结果

func (*CmdResp) String

func (r *CmdResp) String() string

type IAdmin

type IAdmin interface {
	ConfigHTTPAdmin(addr string, port uint64, admin string)
}

IAdmin 控制台服务接口

type IServerCommand

type IServerCommand interface {
	HandleCommand([]string) *CmdResp
}

IServerCommand 后代服务器类处理命令行的接口

Jump to

Keyboard shortcuts

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