proxy

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler, token string) http.Handler

func BlockedEndpointMiddleware

func BlockedEndpointMiddleware(next http.Handler, BLOCKED_ENDPOINTS []string) http.Handler

func Create

func Create(targetUrl string) *httputil.ReverseProxy

func TemplatingMiddleware

func TemplatingMiddleware(next http.Handler, VARIABLES map[string]interface{}) http.Handler

Types

type AuthType

type AuthType string
const (
	Bearer AuthType = "Bearer"
	Basic  AuthType = "Basic"
	Query  AuthType = "Query"
	None   AuthType = "None"
)

Jump to

Keyboard shortcuts

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