proxy

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: MIT Imports: 20 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
	ServiceType uint
	Name        string
	Listen      string
	Backend     string
	Root        string
	Must        *actions.Must
})

提交保存

type CacheAction

type CacheAction actions.Action

func (*CacheAction) Run

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

缓存设置

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 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 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 {
	HttpOn          bool
	ServerId        string
	Description     string
	Name            []string
	Listen          []string
	Root            string
	Charset         string
	Index           []string
	MaxBodySize     float64
	MaxBodyUnit     string
	EnableAccessLog bool
	GzipLevel       uint8
	GzipMinLength   float64
	GzipMinUnit     string
	Must            *actions.Must
})

保存提交

type UpdateCacheAction

type UpdateCacheAction actions.Action

func (*UpdateCacheAction) Run

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

更新缓存设置

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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