Documentation ¶
Index ¶
- type AddAction
- type CacheAction
- type ClientDisconnectAction
- type ClientsAction
- type DeleteAction
- type DetailAction
- type FrontendAction
- type Helper
- type IndexAction
- type LocalAddrsAction
- type LocalListensAction
- type LocalPathAction
- type MoveAction
- type RestartAction
- type ShutdownHttpAction
- type ShutdownTcpAction
- type StartHttpAction
- type StartTcpAction
- type StatusAction
- type UpdateAction
- type UpdateCacheAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAction ¶
type ClientDisconnectAction ¶
func (*ClientDisconnectAction) RunPost ¶
func (this *ClientDisconnectAction) RunPost(params struct { ServerId string Addr string // client addr })
断开客户端连接
type ClientsAction ¶
func (*ClientsAction) RunGet ¶
func (this *ClientsAction) RunGet(params struct { ServerId string })
客户端连接管理
type DeleteAction ¶
func (*DeleteAction) RunPost ¶
func (this *DeleteAction) RunPost(params struct { ServerId string })
type DetailAction ¶
type FrontendAction ¶
func (*FrontendAction) Run ¶
func (this *FrontendAction) Run(params struct { ServerId string })
前端设置
type Helper ¶
type Helper struct { }
func (*Helper) BeforeAction ¶
func (this *Helper) BeforeAction(action *actions.ActionObject)
type IndexAction ¶
type LocalAddrsAction ¶
func (*LocalAddrsAction) RunPost ¶
func (this *LocalAddrsAction) RunPost(params struct{})
本地的网卡绑定的IP地址
type LocalListensAction ¶
func (*LocalListensAction) RunPost ¶
func (this *LocalListensAction) RunPost(params struct{})
本地正在监听的地址
type LocalPathAction ¶
func (*LocalPathAction) Run ¶
func (this *LocalPathAction) Run(params struct { Prefix string })
本地路径查询
type MoveAction ¶
func (*MoveAction) Run ¶
func (this *MoveAction) Run(params struct { FromIndex int ToIndex int })
移动代理服务位置
type RestartAction ¶
type ShutdownHttpAction ¶
func (*ShutdownHttpAction) Run ¶
func (this *ShutdownHttpAction) Run(params struct { ServerId string })
关闭HTTP服务
type ShutdownTcpAction ¶
func (*ShutdownTcpAction) Run ¶
func (this *ShutdownTcpAction) Run(params struct { ServerId string })
关闭Tcp服务
type StartHttpAction ¶
func (*StartHttpAction) Run ¶
func (this *StartHttpAction) Run(params struct { ServerId string })
启动HTTP服务
type StartTcpAction ¶
func (*StartTcpAction) Run ¶
func (this *StartTcpAction) Run(params struct { ServerId string })
启动Tcp服务
type StatusAction ¶
func (*StatusAction) Run ¶
func (this *StatusAction) Run()
type UpdateAction ¶
func (*UpdateAction) Run ¶
func (this *UpdateAction) Run(params struct { ServerId string })
修改代理服务信息
func (*UpdateAction) RunPost ¶
func (this *UpdateAction) RunPost(params struct { // 通用 ServerId string Description string Name []string Listen []string // HTTP HttpOn bool Root string Charset string Index []string MaxBodySize float64 MaxBodyUnit string EnableStat bool // gzip GzipLevel uint8 GzipMinLength float64 GzipMinUnit string GzipMimeTypeValues []string // cache CacheStatic bool // pages PageStatusList []string PageURLList []string PageNewStatusList []string ShutdownPageOn bool ShutdownPageURL string ShutdownPageStatus int RedirectToHttps bool // TCP TcpOn bool TcpReadBufferSize int TcpWriteBufferSize int // ForwardHTTP ForwardHTTPEnableMITM bool Must *actions.Must })
保存提交
type UpdateCacheAction ¶
func (*UpdateCacheAction) Run ¶
func (this *UpdateCacheAction) Run(params struct { ServerId string Policy string })
更新缓存设置
Source Files ¶
Click to show internal directories.
Click to hide internal directories.