Documentation
¶
Index ¶
- type HardcodeRewriteHandlerType
- func (hdlr *HardcodeRewriteHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *HardcodeRewriteHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr HardcodeRewriteHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)
- type MatchReplaceType
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
}
--------------------------------------------------------------------------------------------------------------------------
Click to show internal directories.
Click to hide internal directories.