sqlite

package
v0.0.0-...-57fcccd Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserDatabase

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

func NewUserDatabase

func NewUserDatabase(path string, ro ...bool) (*UserDatabase, error)

func (*UserDatabase) Close

func (db *UserDatabase) Close()

func (*UserDatabase) GetChanges

func (db *UserDatabase) GetChanges(ctx context.Context, uwg types.UsersWithGroups) ([]types.User, []types.User, error)

func (*UserDatabase) GetGroupByGID

func (db *UserDatabase) GetGroupByGID(ctx context.Context, gid uint) (types.Group, error)

func (*UserDatabase) GetGroupByName

func (db *UserDatabase) GetGroupByName(ctx context.Context, name string) (types.Group, error)

func (*UserDatabase) GetGroups

func (db *UserDatabase) GetGroups(ctx context.Context) ([]types.Group, error)

func (*UserDatabase) GetUserByName

func (db *UserDatabase) GetUserByName(ctx context.Context, name string) (types.User, error)

func (*UserDatabase) GetUserByUID

func (db *UserDatabase) GetUserByUID(ctx context.Context, uid uint) (types.User, error)

func (*UserDatabase) GetUsers

func (db *UserDatabase) GetUsers(ctx context.Context) ([]types.User, error)

func (*UserDatabase) Migrate

func (db *UserDatabase) Migrate() error

func (*UserDatabase) Sync

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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