Documentation
¶
Index ¶
- func SetNoCacheHeaders(www http.ResponseWriter, req *http.Request)
- type MonAliveType
- func (hdlr *MonAliveType) CheckLoginRequired(www http.ResponseWriter, rw *goftlmux.MidBuffer, req *http.Request) bool
- func (hdlr *MonAliveType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *MonAliveType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *MonAliveType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetNoCacheHeaders ¶
func SetNoCacheHeaders(www http.ResponseWriter, req *http.Request)
Types ¶
type MonAliveType ¶
type MonAliveType struct {
Next http.Handler //
Paths []string // Path to respond to
LoginRequired []string //
ConfigFile string //
LineNo int //
// contains filtered or unexported fields
}
func NewMonAliveMiddlwareServer ¶
func NewMonAliveMiddlwareServer(n http.Handler, p []string, Cfg string) *MonAliveType
func (*MonAliveType) CheckLoginRequired ¶
func (hdlr *MonAliveType) CheckLoginRequired(www http.ResponseWriter, rw *goftlmux.MidBuffer, req *http.Request) bool
TODO -= use this =- Reqturn true if no login required, or if $is_logged_in$="y" and LoginRequired
func (*MonAliveType) InitializeWithConfigData ¶
func (hdlr *MonAliveType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*MonAliveType) PreValidate ¶
func (hdlr *MonAliveType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*MonAliveType) ServeHTTP ¶
func (hdlr *MonAliveType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.