backend

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT Imports: 15 Imported by: 1

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 {
	From       string
	ServerId   string
	LocationId string // 路径
	Websocket  bool   // 是否是Websocket设置
	Backup     bool
})

添加服务器

func (*AddAction) RunPost

func (this *AddAction) RunPost(params struct {
	ServerId        string
	LocationId      string // 路径
	Websocket       bool   // 是否是Websocket设置
	Address         string
	Scheme          string
	Weight          uint
	On              bool
	Code            string
	FailTimeout     uint
	ReadTimeout     uint
	MaxFails        int32
	MaxConns        int32
	IsBackup        bool
	RequestGroupIds []string
	RequestURI      string
	CheckURL        string
	CheckInterval   int

	RequestHeaderNames  []string
	RequestHeaderValues []string

	ResponseHeaderNames  []string
	ResponseHeaderValues []string

	Host string

	Must *actions.Must
})

提交

type ClearFailsAction

type ClearFailsAction actions.Action

func (*ClearFailsAction) Run

func (this *ClearFailsAction) Run(params struct {
	ServerId   string
	LocationId string
	Websocket  bool
	BackendId  string
})

清除失败次数

type DataAction

type DataAction actions.Action

func (*DataAction) Run

func (this *DataAction) Run(params struct {
	ServerId   string
	LocationId string
	Websocket  bool
})

后端服务器数据

type DeleteAction

type DeleteAction actions.Action

func (*DeleteAction) Run

func (this *DeleteAction) Run(params struct {
	ServerId   string
	LocationId string
	Websocket  bool
	BackendId  string
})

删除后端服务器

type IndexAction

type IndexAction actions.Action

func (*IndexAction) Run

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

后端列表

type OnlineAction

type OnlineAction actions.Action

func (*OnlineAction) Run

func (this *OnlineAction) Run(params struct {
	ServerId   string
	LocationId string
	Websocket  bool
	BackendId  string
})

上线服务器

type SchedulingAction

type SchedulingAction actions.Action

func (*SchedulingAction) Run

func (this *SchedulingAction) Run(params struct {
	ServerId   string
	LocationId string
	Websocket  bool
	From       string
})

调度算法

func (*SchedulingAction) RunPost

func (this *SchedulingAction) RunPost(params struct {
	ServerId    string
	LocationId  string
	Websocket   bool
	Type        string
	HashKey     string
	StickyType  string
	StickyParam string
	Must        *actions.Must
})

保存提交

type UpdateAction

type UpdateAction actions.Action

func (*UpdateAction) Run

func (this *UpdateAction) Run(params struct {
	ServerId   string
	LocationId string
	Websocket  bool
	Backend    string
	From       string
})

修改后端服务器

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	ServerId        string
	LocationId      string
	Websocket       bool
	BackendId       string
	Address         string
	Scheme          string
	Weight          uint
	On              bool
	Code            string
	FailTimeout     uint
	ReadTimeout     uint
	MaxFails        int32
	MaxConns        int32
	IsBackup        bool
	RequestGroupIds []string
	RequestURI      string
	CheckURL        string
	CheckInterval   int

	RequestHeaderNames  []string
	RequestHeaderValues []string

	ResponseHeaderNames  []string
	ResponseHeaderValues []string

	Host string

	Must *actions.Must
})

提交

Jump to

Keyboard shortcuts

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