proxy

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 25 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAction

type AddAction actions.Action

添加新的服务

func (*AddAction) Run

func (this *AddAction) Run(params struct {
})

func (*AddAction) RunPost

func (this *AddAction) RunPost(params struct {
	Description string
	ServerType  string
	Names       []string
	Listens     []string

	Backends []string
	Root     string

	Must *actions.Must
})

提交保存

type CacheAction

type CacheAction actions.Action

func (*CacheAction) Run

func (this *CacheAction) Run(params struct {
	ServerId string
})

缓存设置

type ClientDisconnectAction added in v0.1.6

type ClientDisconnectAction actions.Action

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

type ClientsAction actions.Action

func (*ClientsAction) RunGet added in v0.1.6

func (this *ClientsAction) RunGet(params struct {
	ServerId string
})

客户端连接管理

func (*ClientsAction) RunPost added in v0.1.6

func (this *ClientsAction) RunPost(params struct {
	ServerId string
	Size     int

	Must *actions.Must
})

客户端连接数据

type DeleteAction

type DeleteAction actions.Action

func (*DeleteAction) Run

func (this *DeleteAction) Run(params struct {
	ServerId string
})

删除

func (*DeleteAction) RunPost

func (this *DeleteAction) RunPost(params struct {
	ServerId string
})

type DetailAction

type DetailAction actions.Action

func (*DetailAction) Run

func (this *DetailAction) Run(params struct {
	ServerId string
})

代理详情

type FrontendAction

type FrontendAction actions.Action

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 IndexAction actions.Action

func (*IndexAction) Run

func (this *IndexAction) Run(params struct {
})

代理首页

type LocalAddrsAction added in v0.1.6

type LocalAddrsAction actions.Action

func (*LocalAddrsAction) RunPost added in v0.1.6

func (this *LocalAddrsAction) RunPost(params struct{})

本地的网卡绑定的IP地址

type LocalListensAction added in v0.1.6

type LocalListensAction actions.Action

func (*LocalListensAction) RunPost added in v0.1.6

func (this *LocalListensAction) RunPost(params struct{})

本地正在监听的地址

type LocalPathAction

type LocalPathAction actions.Action

func (*LocalPathAction) Run

func (this *LocalPathAction) Run(params struct {
	Prefix string
})

本地路径查询

type MoveAction

type MoveAction actions.Action

func (*MoveAction) Run

func (this *MoveAction) Run(params struct {
	FromIndex int
	ToIndex   int
})

移动代理服务位置

type RestartAction

type RestartAction actions.Action

func (*RestartAction) Run

func (this *RestartAction) Run(params struct{})

试图重启所有服务

type ShutdownHttpAction added in v0.1.2

type ShutdownHttpAction actions.Action

func (*ShutdownHttpAction) Run added in v0.1.2

func (this *ShutdownHttpAction) Run(params struct {
	ServerId string
})

关闭HTTP服务

type ShutdownTcpAction added in v0.1.6

type ShutdownTcpAction actions.Action

func (*ShutdownTcpAction) Run added in v0.1.6

func (this *ShutdownTcpAction) Run(params struct {
	ServerId string
})

关闭Tcp服务

type StartHttpAction added in v0.1.2

type StartHttpAction actions.Action

func (*StartHttpAction) Run added in v0.1.2

func (this *StartHttpAction) Run(params struct {
	ServerId string
})

启动HTTP服务

type StartTcpAction added in v0.1.6

type StartTcpAction actions.Action

func (*StartTcpAction) Run added in v0.1.6

func (this *StartTcpAction) Run(params struct {
	ServerId string
})

启动Tcp服务

type StatusAction

type StatusAction actions.Action

func (*StatusAction) Run

func (this *StatusAction) Run()

type UpdateAction

type UpdateAction actions.Action

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

type UpdateCacheAction actions.Action

func (*UpdateCacheAction) Run

func (this *UpdateCacheAction) Run(params struct {
	ServerId string
	Policy   string
})

更新缓存设置

Jump to

Keyboard shortcuts

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