pipeline

package
v0.38.10-beta.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPipelineHandlerNotFound = errors.New("requested pipeline handler does not exist")
)

Functions

This section is empty.

Types

type AuthenticationSession

type AuthenticationSession struct {
	Subject      string                 `json:"subject"`
	Extra        map[string]interface{} `json:"extra"`
	Header       http.Header            `json:"header"`
	MatchContext MatchContext           `json:"match_context"`
}

type Context

type Context struct {
}

type ContextRequest

type ContextRequest struct {
	http.Request
	Header       http.Header  `json:"header"`
	MatchContext MatchContext `json:"match"`
	Method       string
}

type ContextResponse

type ContextResponse struct {
	URL        string      `json:"url"`
	Header     http.Header `json:"header"`
	Proto      string      `json:"proto"`
	Host       string      `json:"host"`
	RemoteAddr string      `json:"remote_address"`

	RegexpCaptureGroups []string `json:"regexp_capture_groups"`
}

type MatchContext

type MatchContext struct {
	RegexpCaptureGroups []string `json:"regexp_capture_groups"`
	URL                 *url.URL `json:"url"`
}

type Rule

type Rule interface {
	GetID() string
	// ReplaceAllString searches the input string and replaces each match (with the rule's pattern)
	// found with the replacement text.
	ReplaceAllString(strategy configuration.MatchingStrategy, input, replacement string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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