Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage interface { // health check the storage, returns nil if everything is ok Ping() error // return information about the storage Info() (any, error) // clean any data that needs cleaning Clean() error EnsureMigrations() error GetProject(id string) (*data.Project, error) GetUpdatedProjects(timestamp time.Time) ([]*data.Project, error) TOTPGet(opts data.TOTPGet) (data.TOTPGetResult, error) TOTPCreate(opts data.TOTPCreate) (data.TOTPCreateResult, error) TOTPDelete(opts data.TOTPGet) (int, error) TicketUse(opts data.TicketUse) (data.TicketUseResult, error) TicketDelete(opts data.TicketUse) (data.TicketUseResult, error) TicketCreate(opts data.TicketCreate) (data.TicketCreateResult, error) LoginLogGet(opts data.LoginLogGet) (data.LoginLogGetResult, error) LoginLogCreate(opts data.LoginLogCreate) (data.LoginLogCreateResult, error) }
var DB Storage
singleton
Click to show internal directories.
Click to hide internal directories.