cmd

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 22 Imported by: 1

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 SharedShell

func SharedShell() *WebShell

获取共享的对象

func (*WebShell) ExecHelp

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

帮助

func (*WebShell) ExecPprof added in v0.1.7

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) ExecVersion

func (this *WebShell) ExecVersion(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