rule

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Service service.Service `config:"service"`
	//
	Redirect Redirect `config:"redirect"`
}

type Path

type Path struct {
	Path    string  `config:"path"`
	Backend Backend `config:"backend"`
}

type Redirect added in v1.5.0

type Redirect struct {
	URL       string `config:"url"`
	Permanent bool   `config:"permanent"`
}

type Rule

type Rule struct {
	Host    string  `config:"host"`
	Backend Backend `config:"backend"`
	//
	Paths []Path `config:"paths"`
	// HostType is the host match type of Rule, options: exact, regex, wildcard
	HostType string `config:"host_type,default=exact"`
}

Jump to

Keyboard shortcuts

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