Back to godoc.org
github.com/2637309949/bulrush-proxy

Package proxy

v0.0.0-...-74307b3
Latest Go to latest

The latest major version is .

Published: Sep 23, 2019 | License: MIT | Module: github.com/2637309949/bulrush-proxy

Index

Variables

var RushLogger = logger.CreateLogger(logger.SILLY, nil, []*logger.Transport{
	&logger.Transport{
		Level: logger.SILLY,
	},
})

RushLogger for app logger

type Option

type Option func(*Proxy) interface{}

Option defined implement of option

func ReqOption

func ReqOption(req func(*http.Request, *http.Request) *http.Request) Option

ReqOption defined req

func ResOption

func ResOption(res func(gin.ResponseWriter, *http.Response)) Option

ResOption defined res

type Proxy

type Proxy struct {
	URL   string
	Host  string
	Match string
	Map   func(string) string
	// contains filtered or unexported fields
}

Proxy http proxy

func (*Proxy) AddOptions

func (proxy *Proxy) AddOptions(opts ...Option) *Proxy

AddOptions defined add option

func (*Proxy) Plugin

func (proxy *Proxy) Plugin(httpProxy *gin.Engine)

Plugin for gin

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier