Documentation ¶ Index ¶ type Requester func (r *Requester) Header(key, value string) bool func (r *Requester) Host(host string) bool func (r *Requester) Method(method string) bool func (r *Requester) Path(path string) bool func (r *Requester) Query(key, value string) bool type Rule type Splitter func (m *Splitter) Middleware() (func(http.Handler) http.Handler, error) 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) Source Files ¶ View all Source files func.go splitter.go Click to show internal directories. Click to hide internal directories.