Documentation
¶
Index ¶
- type Database
- func (db *Database) GetApplication(userKey string, token string) (application.Application, error)
- func (db *Database) GetTargetByID(targetID string) (target.Target, error)
- func (db *Database) GetUserFromToken(token string) (user.User, error)
- func (db *Database) Query(q string, args ...any) (pgx.Rows, error)
- func (db *Database) QueryOne(q string, args ...any) pgx.Row
- func (db *Database) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) GetApplication ¶
func (db *Database) GetApplication( userKey string, token string, ) (application.Application, error)
func (*Database) GetTargetByID ¶
func (*Database) GetUserFromToken ¶
Click to show internal directories.
Click to hide internal directories.