app

package
v0.0.0-...-32eeac3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePassword

func ChangePassword(w http.ResponseWriter, req *http.Request)

ChangePassword : Serves index page on POST request - executes the change

func ModifyPassword

func ModifyPassword(ls *auth.Config, name, passwd, newPassword string) error

func NewLDAPServer

func NewLDAPServer() *auth.Config

func ServeAssets

func ServeAssets(w http.ResponseWriter, req *http.Request)

ServeAssets : Serves the static assets

func ServeIndex

func ServeIndex(w http.ResponseWriter, req *http.Request)

ServeIndex : Serves index page on GET request

Types

type RegexpHandler

type RegexpHandler struct {
	// contains filtered or unexported fields
}

RegexpHandler is used for http handler to bind using regular expressions

func (*RegexpHandler) HandleFunc

func (h *RegexpHandler) HandleFunc(r string, v string, handler func(http.ResponseWriter, *http.Request))

HandleFunc binds http handler function on RegexpHandler

func (*RegexpHandler) Handler

func (h *RegexpHandler) Handler(pattern *regexp.Regexp, verb string, handler http.Handler)

Handler binds http handler on RegexpHandler

func (*RegexpHandler) ServeHTTP

func (h *RegexpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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