MonAliveMiddleware

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 18 Imported by: 1

Documentation

Index

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)

Jump to

Keyboard shortcuts

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