proxy

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package proxy builds reverse proxy handlers for compiled services.

Index

Constants

View Source
const OxyEngineName = "oxy"

Variables

This section is empty.

Functions

func Build

func Build(target *url.URL) http.Handler

func NewOxyTransport added in v0.1.1

func NewOxyTransport() *http.Transport

NewOxyTransport returns the default upstream transport used by the built-in Oxy reverse proxy engine.

func RewriteRequestURL added in v0.1.1

func RewriteRequestURL(target, requestURL *url.URL)

func RewriteTargetURL

func RewriteTargetURL(target, requestURL *url.URL) *url.URL

Types

type Engine

type Engine interface {
	Name() string
	Build(*url.URL) http.Handler
}
var DefaultEngine Engine = OxyEngine{}

type OxyEngine

type OxyEngine struct{}

func (OxyEngine) Build

func (OxyEngine) Build(target *url.URL) http.Handler

func (OxyEngine) Name

func (OxyEngine) Name() string

Jump to

Keyboard shortcuts

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