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 ¶ added in v0.1.6
func (*ClientDisconnectAction) RunPost ¶ added in v0.1.6
func (this *ClientDisconnectAction) RunPost(params struct { ServerId string Addr string // client addr })
断开客户端连接
type ClientsAction ¶ added in v0.1.6
func (*ClientsAction) RunGet ¶ added in v0.1.6
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 ¶ added in v0.1.6
func (*LocalAddrsAction) RunPost ¶ added in v0.1.6
func (this *LocalAddrsAction) RunPost(params struct{})
本地的网卡绑定的IP地址
type LocalListensAction ¶ added in v0.1.6
func (*LocalListensAction) RunPost ¶ added in v0.1.6
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 ¶ added in v0.1.2
func (*ShutdownHttpAction) Run ¶ added in v0.1.2
func (this *ShutdownHttpAction) Run(params struct { ServerId string })
关闭HTTP服务
type ShutdownTcpAction ¶ added in v0.1.6
func (*ShutdownTcpAction) Run ¶ added in v0.1.6
func (this *ShutdownTcpAction) Run(params struct { ServerId string })
关闭Tcp服务
type StartHttpAction ¶ added in v0.1.2
func (*StartHttpAction) Run ¶ added in v0.1.2
func (this *StartHttpAction) Run(params struct { ServerId string })
启动HTTP服务
type StartTcpAction ¶ added in v0.1.6
func (*StartTcpAction) Run ¶ added in v0.1.6
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 CacheStatic bool PageStatus []string PageURL []string ShutdownPageOn bool ShutdownPage string RedirectToHttps bool // TCP TcpOn bool TcpReadBufferSize int TcpWriteBufferSize int 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.