Documentation
¶
Index ¶
- type MinifyType
- func (hdlr *MinifyType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *MinifyType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *MinifyType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinifyType ¶
type MinifyType struct { Next http.Handler // Paths []string // Paths that match this FileTypes []string // File tyeps are: html, css, js, xml, json, svg, or * for all, * and some other type will eliminate star LineNo int // }
func NewMinifyServer ¶
func NewMinifyServer(n http.Handler, p []string, ft []string) *MinifyType
Parameterized for testing? or just change the test
func (*MinifyType) InitializeWithConfigData ¶
func (hdlr *MinifyType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*MinifyType) PreValidate ¶
func (hdlr *MinifyType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*MinifyType) ServeHTTP ¶
func (hdlr *MinifyType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.