user

package
v0.0.0-...-dd30ea9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserDb

type UserDb struct {
	Base *pg.Db
	// contains filtered or unexported fields
}

func New

func New(db database.Db) *UserDb

func (*UserDb) AccountDb

func (t *UserDb) AccountDb() database.Account

func (*UserDb) CountSystemAdministrators

func (t *UserDb) CountSystemAdministrators(tx interface{}) (int64, error)

func (*UserDb) Create

func (t *UserDb) Create(tx interface{}, item *domain.User) error

func (*UserDb) Grid

func (t *UserDb) Grid(tx interface{}, grid *tecgrid.NgGrid) error

func (*UserDb) GroupCreate

func (t *UserDb) GroupCreate(tx interface{}, item *domain.Group) (err error)

func (*UserDb) GroupGrid

func (t *UserDb) GroupGrid(tx interface{}, grid *tecgrid.NgGrid) (err error)

func (*UserDb) GroupList

func (t *UserDb) GroupList(tx interface{}) (items []domain.Group, err error)

func (*UserDb) GroupLoad

func (t *UserDb) GroupLoad(tx interface{}, id string) (*domain.Group, error)

func (*UserDb) GroupRemove

func (t *UserDb) GroupRemove(tx interface{}, id string) (item *domain.Group, err error)

func (*UserDb) GroupUpdate

func (t *UserDb) GroupUpdate(tx interface{}, item *domain.Group) (err error)

func (*UserDb) List

func (t *UserDb) List(tx interface{}) ([]domain.User, error)

func (*UserDb) Load

func (t *UserDb) Load(tx interface{}, id string) (*domain.User, error)

func (*UserDb) Remove

func (t *UserDb) Remove(tx interface{}, id string) (*domain.User, error)

func (*UserDb) RoleCreate

func (t *UserDb) RoleCreate(tx interface{}, item *domain.Role) error

func (*UserDb) RoleGrid

func (t *UserDb) RoleGrid(tx interface{}, grid *tecgrid.NgGrid) error

func (*UserDb) RoleList

func (t *UserDb) RoleList(tx interface{}) ([]domain.Role, error)

func (*UserDb) RoleLoad

func (t *UserDb) RoleLoad(tx interface{}, id string) (*domain.Role, error)

func (*UserDb) RoleRemove

func (t *UserDb) RoleRemove(tx interface{}, id string) (*domain.Role, error)

func (*UserDb) RoleUpdate

func (t *UserDb) RoleUpdate(tx interface{}, item *domain.Role) error

func (*UserDb) SetAccountDb

func (t *UserDb) SetAccountDb(item *database.Account)

func (*UserDb) Update

func (t *UserDb) Update(tx interface{}, item *domain.User) error

func (*UserDb) UserGroupAdd

func (t *UserDb) UserGroupAdd(tx interface{}, u *domain.UserGroup) error

func (*UserDb) UserGroupIsMember

func (t *UserDb) UserGroupIsMember(tx interface{}, group *domain.Group, user *domain.User) (ok bool, err error)

func (*UserDb) UserGroupListGroups

func (t *UserDb) UserGroupListGroups(tx interface{}, u *domain.User) (selected []domain.Group, unselected []domain.Group, err error)

func (*UserDb) UserGroupListUsers

func (t *UserDb) UserGroupListUsers(tx interface{}, g *domain.Group) (selected []domain.User, unselected []domain.User, err error)

func (*UserDb) UserGroupRemove

func (t *UserDb) UserGroupRemove(tx interface{}, u *domain.UserGroup) error

Jump to

Keyboard shortcuts

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