Ejemplo n.º 1
0
// init handles registering the token auth backend.
func init() {
	auth.Register("token", auth.InitFunc(newAccessController))
}
Ejemplo n.º 2
0
func init() {
	auth.Register("htpasswd", auth.InitFunc(newAccessController))
}
Ejemplo n.º 3
0
// init registers the silly auth backend.
func init() {
	auth.Register("silly", auth.InitFunc(newAccessController))
}