proxy_rewrite

package
v0.0.0-...-034c2bd Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "proxy_rewrite"
)

Variables

This section is empty.

Functions

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Scheme   string            `json:"scheme"`
	URI      string            `json:"uri"`
	RegexURI []string          `json:"regex_uri"`
	Host     string            `json:"host"`
	Headers  map[string]string `json:"headers"`
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Check

func (d *Driver) Check(v interface{}, workers map[eosc.RequireId]interface{}) error

func (*Driver) ConfigType

func (d *Driver) ConfigType() reflect.Type

func (*Driver) Create

func (d *Driver) Create(id, name string, v interface{}, workers map[eosc.RequireId]interface{}) (eosc.IWorker, error)

type Factory

type Factory struct {
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Create

func (f *Factory) Create(profession string, name string, label string, desc string, params map[string]interface{}) (eosc.IExtenderDriver, error)

type ProxyRewrite

type ProxyRewrite struct {
	*Driver
	// contains filtered or unexported fields
}

func (*ProxyRewrite) CheckSkill

func (p *ProxyRewrite) CheckSkill(skill string) bool

func (*ProxyRewrite) Destroy

func (p *ProxyRewrite) Destroy()

func (*ProxyRewrite) DoFilter

func (p *ProxyRewrite) DoFilter(ctx http_service.IHttpContext, next http_service.IChain) (err error)

func (*ProxyRewrite) Id

func (p *ProxyRewrite) Id() string

func (*ProxyRewrite) Reset

func (p *ProxyRewrite) Reset(v interface{}, workers map[eosc.RequireId]interface{}) error

func (*ProxyRewrite) Start

func (p *ProxyRewrite) Start() error

func (*ProxyRewrite) Stop

func (p *ProxyRewrite) Stop() error

Jump to

Keyboard shortcuts

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