Documentation
¶
Overview ¶
Package backends assembles a lookup.Provider: it builds the procedure and direct stores for one database and routes every operation to one of them according to lookup.Config. It lives apart from package lookup because both backends import lookup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Failed ¶
Failed returns a Provider whose every operation returns err. Constructors that cannot return an error use it so a bad configuration fails closed on first use.
Types ¶
type Options ¶
type Options struct {
// DBFactory is called to obtain a fresh *sql.DB when the current one has been closed.
// Nil disables reconnecting.
DBFactory func() (*sql.DB, error)
// UpgradePasswordHash rewrites a legacy cleartext password as bcrypt after a successful
// direct-mode login. Off by default.
UpgradePasswordHash bool
// NoGroupTables skips the group membership table when loading direct-mode policy rules.
NoGroupTables bool
}
Options are the settings that are not naming or mode.
Click to show internal directories.
Click to hide internal directories.