Пример #1
0
// init handles registering the token auth backend.
func init() {
	auth.Register("token", auth.InitFunc(newAccessController))
}
Пример #2
0
func init() {
	auth.Register("htpasswd", auth.InitFunc(newAccessController))
}
Пример #3
0
// init registers the silly auth backend.
func init() {
	auth.Register("silly", auth.InitFunc(newAccessController))
}