auto_redirect

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "auto_redirect"
)

Variables

This section is empty.

Functions

func Check

func Check(conf *Config, workers map[eosc.RequireId]eosc.IWorker) error

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	MaxRedirectCount int    `json:"max_redirect_count" label:"最大重定向次数" description:"最大重定向次数"`
	PathPrefix       string `json:"path_prefix" label:"重定向前缀" description:"重定向前缀"`
	AutoRedirect     bool   `json:"auto_redirect" label:"是否自动重定向" description:"是否自动重定向"`
}

Jump to

Keyboard shortcuts

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