Documentation
¶
Index ¶
- type RedirectHandlerType
- func (hdlr *RedirectHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *RedirectHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *RedirectHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)
- type ToType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedirectHandlerType ¶
type RedirectHandlerType struct { Next http.Handler // Paths []string // To []ToType // replacement string, with ${1} pattern replacements in it TemplateFileName string // If "" then use default, else read and use template. Temlate file is read at startup/reconfigure only. LineNo int // contains filtered or unexported fields }
func NewRedirectServer ¶
func NewRedirectServer(n http.Handler, p []string, t []string) *RedirectHandlerType
func (*RedirectHandlerType) InitializeWithConfigData ¶
func (hdlr *RedirectHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*RedirectHandlerType) PreValidate ¶
func (hdlr *RedirectHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*RedirectHandlerType) ServeHTTP ¶
func (hdlr *RedirectHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.