proxy

package module
v0.0.0-...-edf89cd Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)

New created a new Demo plugin.

Types

type Config

type Config struct {
	ProxyPath    string `json:"proxypath,omitempty"`
	UrlParameter string `json:"urlparameter,omitempty"`
}

Config the plugin configuration.

func CreateConfig

func CreateConfig() *Config

CreateConfig creates the default plugin configuration.

type Proxy

type Proxy struct {
	ProxyPath    string
	UrlParameter string
	// contains filtered or unexported fields
}

Demo a Demo plugin.

func (*Proxy) ServeHTTP

func (a *Proxy) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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