proxy

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: 27 Imported by: 0

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

type ClientDisconnectAction actions.Action

func (*ClientDisconnectAction) RunPost

func (this *ClientDisconnectAction) RunPost(params struct {
	ServerId string
	Addr     string // client addr
})

断开客户端连接

type ClientsAction

type ClientsAction actions.Action

func (*ClientsAction) RunGet

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

客户端连接管理

func (*ClientsAction) RunPost

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

type LocalAddrsAction actions.Action

func (*LocalAddrsAction) RunPost

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

本地的网卡绑定的IP地址

type LocalListensAction

type LocalListensAction actions.Action

func (*LocalListensAction) RunPost

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

type ShutdownHttpAction actions.Action

func (*ShutdownHttpAction) Run

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

关闭HTTP服务

type ShutdownTcpAction

type ShutdownTcpAction actions.Action

func (*ShutdownTcpAction) Run

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

关闭Tcp服务

type StartHttpAction

type StartHttpAction actions.Action

func (*StartHttpAction) Run

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

启动HTTP服务

type StartTcpAction

type StartTcpAction actions.Action

func (*StartTcpAction) Run

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

	// 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

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