rule

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRegularExpression = errors.New("invalid regular expression")

Functions

func NewClient

func NewClient(name string, o *bo.Options, router http.Handler,
	_ cache.Cache, clients backends.Backends,
	_ types.Lookup,
) (backends.Backend, error)

NewClient returns a new Rules Router client reference

func ValidateOptions

func ValidateOptions(clients backends.Backends,
	rwi rewriter.InstructionsLookup,
) error

ValidateOptions ensures that rule clients are fully loaded, which can't be done until all backends are processed, so the rule's destination origin names can be mapped to their respective clients

Types

type Client

type Client struct {
	backends.Backend
	// contains filtered or unexported fields
}

Client Implements the Proxy Client Interface

func (*Client) DefaultPathConfigs

func (c *Client) DefaultPathConfigs(_ *bo.Options) po.List

DefaultPathConfigs returns the default PathConfigs for the given Provider

func (*Client) Handler

func (c *Client) Handler(w http.ResponseWriter, r *http.Request)

Handler processes the HTTP request through the rules engine

func (*Client) RegisterHandlers

func (c *Client) RegisterHandlers(handlers.Lookup)

type Clients

type Clients []*Client

Clients is a list of *rule.Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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