rewrite

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: 16 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 {
	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
	IsBreak      bool
	IsPermanent  bool
	ProxyHost    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 Helper

type Helper struct {
}

func (*Helper) BeforeAction

func (this *Helper) BeforeAction(action *actions.ActionObject)

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
	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
	IsBreak      bool
	IsPermanent  bool
	ProxyHost    string
	Must         *actions.Must
})

提交保存

Jump to

Keyboard shortcuts

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