misc

package
v0.0.0-...-d674f3f Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ldapConf *config.LDAP, localConf *config.Users) auth.Author

Types

type Auth

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

func (*Auth) GetUser

func (provider *Auth) GetUser(username string) (*auth.AuthedUser, error)

func (*Auth) Login

func (provider *Auth) Login(username, password string) (*auth.AuthedUser, error)

func (*Auth) Users

func (provider *Auth) Users() ([]auth.AuthedUser, error)

type Provider

type Provider struct{}

func (Provider) Register

func (p Provider) Register(cc infra.Binder)

func (Provider) ShouldLoad

func (p Provider) ShouldLoad(config *config.Config) bool

Jump to

Keyboard shortcuts

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