HardcodeRewrite

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HardcodeRewriteHandlerType

type HardcodeRewriteHandlerType struct {
	Next         http.Handler       //
	Paths        []string           //
	MatchReplace []MatchReplaceType // set of match/replaces
	LineNo       int                //
	// contains filtered or unexported fields
}

func (*HardcodeRewriteHandlerType) InitializeWithConfigData

func (hdlr *HardcodeRewriteHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)

func (*HardcodeRewriteHandlerType) PreValidate

func (hdlr *HardcodeRewriteHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)

func (HardcodeRewriteHandlerType) ServeHTTP

func (hdlr HardcodeRewriteHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)

type MatchReplaceType

type MatchReplaceType struct {
	Match    string // Text Match for Path
	Replace  string // Replacement Path
	SetName  string // Add inset of name=value when replace happens TODO
	SetValue string // TODO
}

--------------------------------------------------------------------------------------------------------------------------

Jump to

Keyboard shortcuts

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