cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebShell

type WebShell struct {
	ShouldStop bool
}

命令行相关封装

func NewWebShell

func NewWebShell() *WebShell

获取新对象

func (*WebShell) ExecHelp

func (this *WebShell) ExecHelp(writer io.Writer) bool

帮助

func (*WebShell) ExecMasterProcess

func (this *WebShell) ExecMasterProcess(writer io.Writer) bool

启动守护进程

func (*WebShell) ExecPprof

func (this *WebShell) ExecPprof(writer io.Writer) bool

启动pprof

func (*WebShell) ExecReload

func (this *WebShell) ExecReload(writer io.Writer) bool

重载代理配置

func (*WebShell) ExecReset

func (this *WebShell) ExecReset(writer io.Writer) bool

重置

func (*WebShell) ExecRestart

func (this *WebShell) ExecRestart(writer io.Writer) bool

重启

func (*WebShell) ExecService

func (this *WebShell) ExecService(writer io.Writer) bool

启动服务模式

func (*WebShell) ExecStart

func (this *WebShell) ExecStart(writer io.Writer) bool

启动

func (*WebShell) ExecStatus

func (this *WebShell) ExecStatus(writer io.Writer) bool

状态

func (*WebShell) ExecStop

func (this *WebShell) ExecStop(writer io.Writer) bool

停止

func (*WebShell) ExecSync

func (this *WebShell) ExecSync(writer io.Writer) bool

同步

func (*WebShell) ExecVersion

func (this *WebShell) ExecVersion(writer io.Writer) bool

版本号

func (*WebShell) ExecWorker

func (this *WebShell) ExecWorker(writer io.Writer) bool

在后台执行

func (*WebShell) Start

func (this *WebShell) Start(server *TeaGo.Server)

启动

Jump to

Keyboard shortcuts

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