Back to

Package proxy

Latest Go to latest

The latest major version is .

Published: Sep 23, 2019 | License: MIT | Module:



var RushLogger = logger.CreateLogger(logger.SILLY, nil, []*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