Documentation
¶
Index ¶
- type Config
- type DB
- func (db DB) Clean() error
- func (db DB) EnsureMigrations() error
- func (db DB) GetProject(id string) (*data.Project, error)
- func (db DB) GetUpdatedProjects(timestamp time.Time) ([]*data.Project, error)
- func (db DB) Info() (any, error)
- func (db DB) LoginLogCreate(opts data.LoginLogCreate) (data.LoginLogCreateResult, error)
- func (db DB) LoginLogGet(opts data.LoginLogGet) (data.LoginLogGetResult, error)
- func (db DB) Ping() error
- func (db DB) TOTPCreate(opts data.TOTPCreate) (data.TOTPCreateResult, error)
- func (db DB) TOTPDelete(opts data.TOTPGet) (int, error)
- func (db DB) TOTPGet(opts data.TOTPGet) (data.TOTPGetResult, error)
- func (db DB) TicketCreate(opts data.TicketCreate) (data.TicketCreateResult, error)
- func (db DB) TicketDelete(opts data.TicketUse) (data.TicketUseResult, error)
- func (db DB) TicketUse(opts data.TicketUse) (data.TicketUseResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (DB) EnsureMigrations ¶
func (DB) GetUpdatedProjects ¶
func (DB) LoginLogCreate ¶ added in v0.0.2
func (db DB) LoginLogCreate(opts data.LoginLogCreate) (data.LoginLogCreateResult, error)
func (DB) LoginLogGet ¶ added in v0.0.2
func (db DB) LoginLogGet(opts data.LoginLogGet) (data.LoginLogGetResult, error)
func (DB) TOTPCreate ¶
func (db DB) TOTPCreate(opts data.TOTPCreate) (data.TOTPCreateResult, error)
func (DB) TicketCreate ¶ added in v0.0.2
func (db DB) TicketCreate(opts data.TicketCreate) (data.TicketCreateResult, error)
func (DB) TicketDelete ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.