backendsettings

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitModule

func InitModule(cfg jconf.SubConfig) (rpmod rproxymod.ProxyModule, err error)

InitModule is setting up our module with it's config

Types

type Config

type Config struct {
	ForceTLS bool
	Port     int
}

Config holds our config

type Module

type Module struct {
	rproxymod.BaseModule
	Config
}

Module holds all our functions and keeps Config

func (*Module) Deinit

func (mod *Module) Deinit() error

Deinit is unused in this case, but is part of the interface.

func (*Module) ModifyResponse

func (mod *Module) ModifyResponse(reqCtx *rproxymod.RequestContext, inReq *http.Request, resp *http.Response) error

ModifyResponse is unused in this case, but is part of the interface.

func (*Module) ProcessRequest

func (mod *Module) ProcessRequest(reqCtx *rproxymod.RequestContext, inReq *http.Request, proxyReq *http.Request) (res *http.Response, err error)

ProcessRequest will change the proxyRequest (out going connection) to match the backend config

Jump to

Keyboard shortcuts

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