locations

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessAction

type AccessAction actions.Action

func (*AccessAction) Run

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

访问控制

type AddAction

type AddAction actions.Action

func (*AddAction) Run

func (this *AddAction) Run(params struct {
	ServerId string
	From     string
	Must     *actions.Must
})

添加路径规则

func (*AddAction) RunPost

func (this *AddAction) RunPost(params struct {
	ServerId          string
	Name              string
	Pattern           string
	PatternType       int
	Root              string
	Charset           string
	Index             []string
	MaxBodySize       float64
	MaxBodyUnit       string
	EnableAccessLog   bool
	AccessLogFields   []int
	EnableStat        bool
	GzipLevel         int8
	GzipMinLength     float64
	GzipMinUnit       string
	On                bool
	IsReverse         bool
	IsCaseInsensitive bool
})

保存提交

type CacheAction

type CacheAction actions.Action

func (*CacheAction) Run

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

缓存设置

type DeleteAction

type DeleteAction actions.Action

func (*DeleteAction) Run

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

删除路径规则

type DetailAction

type DetailAction actions.Action

func (*DetailAction) Run

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

路径规则详情

type FastcgiAction

type FastcgiAction actions.Action

func (*FastcgiAction) Run

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

Fastcgi设置

type HeadersAction

type HeadersAction actions.Action

func (*HeadersAction) Run

func (this *HeadersAction) Run(params struct {
	ServerId   string // 必填
	LocationId string
})

自定义Http Header

type IndexAction

type IndexAction actions.Action

func (*IndexAction) Run

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

路径规则列表

type MoveAction added in v0.1.2

type MoveAction actions.Action

func (*MoveAction) Run added in v0.1.2

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

移动

type MoveDownAction

type MoveDownAction actions.Action

func (*MoveDownAction) Run

func (this *MoveDownAction) Run(params struct {
	ServerId string
	Index    int
})

type MoveUpAction

type MoveUpAction actions.Action

func (*MoveUpAction) Run

func (this *MoveUpAction) Run(params struct {
	ServerId string
	Index    int
})

type RewriteAction

type RewriteAction actions.Action

func (*RewriteAction) Run

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

重写规则

type TestAction

type TestAction actions.Action

func (*TestAction) Run

func (this *TestAction) Run(params struct {
	Pattern           string
	PatternType       int
	IsReverse         bool
	IsCaseInsensitive bool
	TestingPath       string

	CondParams []string
	CondOps    []string
	CondValues []string
})

测试

type UpdateAction

type UpdateAction actions.Action

func (*UpdateAction) Run

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

修改

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	ServerId          string
	LocationId        string
	Pattern           string
	PatternType       int
	Name              string
	Root              string
	Charset           string
	Index             []string
	MaxBodySize       float64
	MaxBodyUnit       string
	EnableAccessLog   bool
	AccessLogFields   []int
	EnableStat        bool
	GzipLevel         int8
	GzipMinLength     float64
	GzipMinUnit       string
	On                bool
	IsReverse         bool
	IsCaseInsensitive bool

	CondParams []string
	CondOps    []string
	CondValues []string
})

保存修改

type UpdateCacheAction

type UpdateCacheAction actions.Action

func (*UpdateCacheAction) Run

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

更新缓存设置

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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