Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBAuthRepository ¶
type DBAuthRepository struct {
// contains filtered or unexported fields
}
func NewAuthRepository ¶
func NewAuthRepository(db *sql.DB, dbtype DatabaseType) *DBAuthRepository
func (*DBAuthRepository) Create ¶
func (repo *DBAuthRepository) Create(entry *AuthEntry) error
func (*DBAuthRepository) Delete ¶
func (repo *DBAuthRepository) Delete(id int64) error
func (*DBAuthRepository) GetByUsername ¶
func (repo *DBAuthRepository) GetByUsername(username string) (*AuthEntry, error)
func (*DBAuthRepository) Update ¶
func (repo *DBAuthRepository) Update(entry *AuthEntry) error
type DBPrivRepository ¶
type DBPrivRepository struct {
// contains filtered or unexported fields
}
func NewPrivilegeRepository ¶
func NewPrivilegeRepository(db *sql.DB, dbtype DatabaseType) *DBPrivRepository
func (*DBPrivRepository) Create ¶
func (repo *DBPrivRepository) Create(entry *PrivilegeEntry) error
func (*DBPrivRepository) Delete ¶
func (repo *DBPrivRepository) Delete(id int64, privilege string) error
func (*DBPrivRepository) GetByID ¶
func (repo *DBPrivRepository) GetByID(id int64) ([]*PrivilegeEntry, error)
type DatabaseType ¶
type DatabaseType string
const ( DATABASE_SQLITE DatabaseType = "sqlite" DATABASE_POSTGRES DatabaseType = "postgres" )
type PrivilegeEntry ¶
Click to show internal directories.
Click to hide internal directories.