rewrite

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 13 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
})

添加重写规则

func (*AddAction) RunPost

func (this *AddAction) RunPost(params struct {
	ServerId     string
	LocationId   string
	On           bool
	Pattern      string
	Replace      string
	ProxyId      string
	TargetType   string
	RedirectMode string
	CondParams   []string
	CondOps      []string
	CondValues   []string
	Must         *actions.Must
})

提交保存

type DataAction

type DataAction actions.Action

func (*DataAction) Run

func (this *DataAction) 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
	RewriteId  string
})

删除重写规则

type TestAction

type TestAction actions.Action

func (*TestAction) Run

func (this *TestAction) Run(params struct {
	Pattern      string
	Replace      string
	ProxyId      string
	TargetType   string
	RedirectMode string
	CondParams   []string
	CondOps      []string
	CondValues   []string
	TestingPath  string
	Must         *actions.Must
})

匹配测试

type UpdateAction

type UpdateAction actions.Action

func (*UpdateAction) Run

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

修改重写规则

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	ServerId     string
	LocationId   string
	RewriteId    string
	On           bool
	Pattern      string
	Replace      string
	ProxyId      string
	TargetType   string
	RedirectMode string
	CondParams   []string
	CondOps      []string
	CondValues   []string
	Must         *actions.Must
})

提交保存

Jump to

Keyboard shortcuts

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