Documentation
¶
Index ¶
- func DbLoad()
- type Database
- type GormStore
- func (gs *GormStore) CheckIfPermissionExistsByCodeOrName(code, name string) error
- func (gs *GormStore) CheckIfRoleExistsByIds(id []uint) error
- func (gs *GormStore) CheckIfRoleExistsByName(name string) error
- func (gs *GormStore) CheckIfUserExistsByUsernameOrEmail(email, username string) error
- func (gs *GormStore) CreateAdmin() error
- func (gs *GormStore) GetPermissionByIds(ids []uint) ([]models.Permission, error)
- func (gs *GormStore) GetRoleByIds(ids []uint) ([]models.Role, error)
- func (gs *GormStore) GetUserByID(id uint) (*models.User, error)
- func (gs *GormStore) GetUserByUsernameOrEmail(text string) (*models.User, error)
- func (gs *GormStore) Health() map[string]string
- type RedisStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct {
GormStore *GormStore
RedisStore *RedisStore
}
var DB Database
type GormStore ¶
func (*GormStore) CheckIfPermissionExistsByCodeOrName ¶
func (*GormStore) CheckIfRoleExistsByIds ¶
func (*GormStore) CheckIfRoleExistsByName ¶
func (*GormStore) CheckIfUserExistsByUsernameOrEmail ¶
func (*GormStore) CreateAdmin ¶
func (*GormStore) GetPermissionByIds ¶
func (gs *GormStore) GetPermissionByIds(ids []uint) ([]models.Permission, error)
func (*GormStore) GetRoleByIds ¶
func (*GormStore) GetUserByUsernameOrEmail ¶
type RedisStore ¶
func (*RedisStore) Health ¶
func (rs *RedisStore) Health() map[string]string
Click to show internal directories.
Click to hide internal directories.