ldbauth

package
v0.0.0-...-1cd437b Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LDBAuth

type LDBAuth struct {
	DB *leveldb.DB
}

func (*LDBAuth) AddGroup

func (db *LDBAuth) AddGroup(group string) error

func (*LDBAuth) AddUser

func (db *LDBAuth) AddUser(user, pass string) error

func (*LDBAuth) AddUserGroup

func (db *LDBAuth) AddUserGroup(user, group string) error

func (*LDBAuth) CheckPasswd

func (db *LDBAuth) CheckPasswd(ctx *server.Context, user, pass string) (bool, error)

func (*LDBAuth) ChgPass

func (db *LDBAuth) ChgPass(user, pass string) error

func (*LDBAuth) DelGroup

func (db *LDBAuth) DelGroup(group string) error

func (*LDBAuth) DelUser

func (db *LDBAuth) DelUser(user string) error

func (*LDBAuth) DelUserGroup

func (db *LDBAuth) DelUserGroup(user, group string) error

func (*LDBAuth) GetUser

func (db *LDBAuth) GetUser(user string) (string, error)

func (*LDBAuth) GroupList

func (db *LDBAuth) GroupList(groups *[]string) error

func (*LDBAuth) GroupUser

func (db *LDBAuth) GroupUser(group string, users *[]string) error

func (*LDBAuth) UserList

func (db *LDBAuth) UserList(users *[]web.User) error

Jump to

Keyboard shortcuts

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