Documentation ¶
Index ¶
- func CloseDataBase()
- type CreateTaskParams
- type CreateUserParams
- type DBTX
- type Dtag
- type EditAdminAccessParams
- type GetAllAdminUsersRow
- type GetAllUsersRow
- type Platform
- type Querier
- type Queries
- func (q *Queries) CreateTask(ctx context.Context, arg CreateTaskParams) (Task, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) CreateUserVerification(ctx context.Context, userID uuid.UUID) (UserVerification, error)
- func (q *Queries) EditAdminAccess(ctx context.Context, arg EditAdminAccessParams) (User, error)
- func (q *Queries) GetAllAdminUsers(ctx context.Context) ([]GetAllAdminUsersRow, error)
- func (q *Queries) GetAllTasks(ctx context.Context) ([]Task, error)
- func (q *Queries) GetAllUsers(ctx context.Context) ([]GetAllUsersRow, error)
- func (q *Queries) GetUserFromAuthToken(ctx context.Context, authToken string) (User, error)
- func (q *Queries) GetUserFromEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserVerificationEntryFromUserID(ctx context.Context, userID uuid.UUID) (UserVerification, error)
- func (q *Queries) SetUserVerificationTrue(ctx context.Context, id uuid.UUID) (User, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Task
- type User
- type UserVerification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseDataBase ¶
func CloseDataBase()
Types ¶
type CreateTaskParams ¶
type CreateUserParams ¶
type EditAdminAccessParams ¶
type GetAllAdminUsersRow ¶
type GetAllUsersRow ¶
type Querier ¶
type Querier interface { CreateTask(ctx context.Context, arg CreateTaskParams) (Task, error) CreateUser(ctx context.Context, arg CreateUserParams) (User, error) CreateUserVerification(ctx context.Context, userID uuid.UUID) (UserVerification, error) EditAdminAccess(ctx context.Context, arg EditAdminAccessParams) (User, error) GetAllAdminUsers(ctx context.Context) ([]GetAllAdminUsersRow, error) GetAllTasks(ctx context.Context) ([]Task, error) GetAllUsers(ctx context.Context) ([]GetAllUsersRow, error) GetUserFromAuthToken(ctx context.Context, authToken string) (User, error) GetUserFromEmail(ctx context.Context, email string) (User, error) GetUserVerificationEntryFromUserID(ctx context.Context, userID uuid.UUID) (UserVerification, error) SetUserVerificationTrue(ctx context.Context, id uuid.UUID) (User, error) }
func InitialiseDatabase ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateTask ¶
func (*Queries) CreateUser ¶
func (*Queries) CreateUserVerification ¶
func (*Queries) EditAdminAccess ¶
func (*Queries) GetAllAdminUsers ¶
func (q *Queries) GetAllAdminUsers(ctx context.Context) ([]GetAllAdminUsersRow, error)
func (*Queries) GetAllUsers ¶
func (q *Queries) GetAllUsers(ctx context.Context) ([]GetAllUsersRow, error)
func (*Queries) GetUserFromAuthToken ¶
func (*Queries) GetUserFromEmail ¶
func (*Queries) GetUserVerificationEntryFromUserID ¶
func (*Queries) SetUserVerificationTrue ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.