Documentation
¶
Index ¶
Constants ¶
View Source
const AddUserQuery = `INSERT INTO users (principal, username, realm, extra_data) VALUES (?, ?, ?, ?);`
View Source
const DeleteUserQuery = `DELETE FROM users WHERE principal = ?;`
View Source
const GetExtraDataQuery = `SELECT extra_data FROM users WHERE principal = ?;`
View Source
const GetUserQuery = `SELECT username, realm, extra_data FROM users WHERE principal = ?;`
View Source
const ListUsersQuery = `SELECT principal FROM users;`
View Source
const SetupTables = `` /* 216-byte string literal not displayed */
View Source
const UpdateUserQuery = `UPDATE users SET username = ?, realm = ?, extra_data = ? WHERE principal = ?;`
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalProvider ¶
type LocalProvider struct {
// contains filtered or unexported fields
}
func (*LocalProvider) Authenticate ¶
func (p *LocalProvider) Authenticate(ctx context.Context) (string, error)
func (*LocalProvider) InitNewDB ¶
func (p *LocalProvider) InitNewDB() error
func (*LocalProvider) String ¶
func (p *LocalProvider) String() string
Click to show internal directories.
Click to hide internal directories.