policy

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(config *api.NetworkConfig) *Engine

func (*Engine) GetPlaceholder

func (e *Engine) GetPlaceholder(name string) string

func (*Engine) GetPlaceholders

func (e *Engine) GetPlaceholders() map[string]string

func (*Engine) IsHostAllowed

func (e *Engine) IsHostAllowed(host string) bool

func (*Engine) OnRequest

func (e *Engine) OnRequest(req *http.Request, host string) (*http.Request, error)

func (*Engine) OnResponse

func (e *Engine) OnResponse(resp *http.Response, req *http.Request, host string) (*http.Response, error)

Jump to

Keyboard shortcuts

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