splitter

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Requester

type Requester struct {
	Req *http.Request
}

func (*Requester) Header

func (r *Requester) Header(key, value string) bool

func (*Requester) Host

func (r *Requester) Host(host string) bool

func (*Requester) Method

func (r *Requester) Method(method string) bool

func (*Requester) Path

func (r *Requester) Path(path string) bool

func (*Requester) Query

func (r *Requester) Query(key, value string) bool

type Rule

type Rule struct {
	Rule        string   `cfg:"rule"`
	Middlewares []string `cfg:"middlewares"`
	// contains filtered or unexported fields
}

type Splitter

type Splitter struct {
	Rules []Rule `cfg:"rules"`
}

func (*Splitter) Middleware

func (m *Splitter) Middleware() (func(http.Handler) http.Handler, error)

Jump to

Keyboard shortcuts

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