Documentation ¶
Index ¶
- type AddUserDosageParams
- type Compression
- type CreateUserParams
- type DBTX
- type DeliveryMethod
- type DosageHistory
- type DosageSchedule
- type Meta
- type NotificationHistory
- type NullCompression
- type Queries
- func (q *Queries) AddUserDosage(ctx context.Context, arg AddUserDosageParams) error
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
- func (q *Queries) DeliveryMethod(ctx context.Context, name string) (DeliveryMethod, error)
- func (q *Queries) DeliveryMethods(ctx context.Context) ([]DeliveryMethod, error)
- func (q *Queries) RegisterSession(ctx context.Context, arg RegisterSessionParams) error
- func (q *Queries) SetUserAvatar(ctx context.Context, arg SetUserAvatarParams) error
- func (q *Queries) SetUserCustomNotification(ctx context.Context, arg SetUserCustomNotificationParams) error
- func (q *Queries) SetUserNotificationService(ctx context.Context, arg SetUserNotificationServiceParams) error
- func (q *Queries) UpdateUserDosageSchedule(ctx context.Context, arg UpdateUserDosageScheduleParams) error
- func (q *Queries) UpdateUserEmailPassword(ctx context.Context, arg UpdateUserEmailPasswordParams) error
- func (q *Queries) UpdateUserLocale(ctx context.Context, arg UpdateUserLocaleParams) error
- func (q *Queries) UpdateUserName(ctx context.Context, arg UpdateUserNameParams) error
- func (q *Queries) User(ctx context.Context, userID xid.ID) (UserRow, error)
- func (q *Queries) UserAvatar(ctx context.Context, userID xid.ID) ([]byte, error)
- func (q *Queries) UserDosageHistory(ctx context.Context, arg UserDosageHistoryParams) ([]DosageHistory, error)
- func (q *Queries) UserDosageSchedule(ctx context.Context, userID xid.ID) error
- func (q *Queries) UserPasswordHashFromEmail(ctx context.Context, email string) (UserPasswordHashFromEmailRow, error)
- func (q *Queries) ValidateSession(ctx context.Context, token []byte) (ValidateSessionRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RegisterSessionParams
- type SetUserAvatarParams
- type SetUserCustomNotificationParams
- type SetUserNotificationServiceParams
- type UpdateUserDosageScheduleParams
- type UpdateUserEmailPasswordParams
- type UpdateUserLocaleParams
- type UpdateUserNameParams
- type User
- type UserAvatar
- type UserDosageHistoryParams
- type UserPasswordHashFromEmailRow
- type UserRow
- type UserSession
- type ValidateSessionRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUserDosageParams ¶
type Compression ¶
type Compression string
const ( CompressionGzip Compression = "gzip" CompressionZstd Compression = "zstd" CompressionBrotli Compression = "brotli" )
func (*Compression) Scan ¶
func (e *Compression) Scan(src interface{}) error
type CreateUserParams ¶
type DeliveryMethod ¶
type DosageHistory ¶
type DosageSchedule ¶
type NotificationHistory ¶
type NullCompression ¶
type NullCompression struct { Compression Compression Valid bool // Valid is true if Compression is not NULL }
func (*NullCompression) Scan ¶
func (ns *NullCompression) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddUserDosage ¶
func (q *Queries) AddUserDosage(ctx context.Context, arg AddUserDosageParams) error
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
func (*Queries) DeliveryMethod ¶
func (*Queries) DeliveryMethods ¶
func (q *Queries) DeliveryMethods(ctx context.Context) ([]DeliveryMethod, error)
func (*Queries) RegisterSession ¶
func (q *Queries) RegisterSession(ctx context.Context, arg RegisterSessionParams) error
func (*Queries) SetUserAvatar ¶
func (q *Queries) SetUserAvatar(ctx context.Context, arg SetUserAvatarParams) error
func (*Queries) SetUserCustomNotification ¶
func (q *Queries) SetUserCustomNotification(ctx context.Context, arg SetUserCustomNotificationParams) error
func (*Queries) SetUserNotificationService ¶
func (q *Queries) SetUserNotificationService(ctx context.Context, arg SetUserNotificationServiceParams) error
func (*Queries) UpdateUserDosageSchedule ¶
func (q *Queries) UpdateUserDosageSchedule(ctx context.Context, arg UpdateUserDosageScheduleParams) error
func (*Queries) UpdateUserEmailPassword ¶
func (q *Queries) UpdateUserEmailPassword(ctx context.Context, arg UpdateUserEmailPasswordParams) error
func (*Queries) UpdateUserLocale ¶
func (q *Queries) UpdateUserLocale(ctx context.Context, arg UpdateUserLocaleParams) error
func (*Queries) UpdateUserName ¶
func (q *Queries) UpdateUserName(ctx context.Context, arg UpdateUserNameParams) error
func (*Queries) UserAvatar ¶
func (*Queries) UserDosageHistory ¶
func (q *Queries) UserDosageHistory(ctx context.Context, arg UserDosageHistoryParams) ([]DosageHistory, error)
func (*Queries) UserDosageSchedule ¶
func (*Queries) UserPasswordHashFromEmail ¶
func (*Queries) ValidateSession ¶
type RegisterSessionParams ¶
type SetUserAvatarParams ¶
type SetUserCustomNotificationParams ¶
type SetUserCustomNotificationParams struct { UserID xid.ID CustomNotification *notificationservice.Notification }
type SetUserNotificationServiceParams ¶
type SetUserNotificationServiceParams struct { UserID xid.ID NotificationService *notificationservice.NotificationConfigJSON }
type UpdateUserLocaleParams ¶
type UpdateUserLocaleParams struct { UserID xid.ID Locale userservice.Locale }
type UpdateUserNameParams ¶
type User ¶
type User struct { UserID xid.ID Email string Passhash []byte Name string Locale userservice.Locale RegisteredAt pgtype.Timestamp NotificationService *notificationservice.NotificationConfigJSON CustomNotification *notificationservice.Notification }
type UserAvatar ¶
type UserAvatar struct { UserID xid.ID MimeType string Compression assetservice.Compression AvatarImage []byte }
type UserDosageHistoryParams ¶
type UserDosageHistoryParams struct { UserID pgtype.Uint32 TakenAt pgtype.Timestamptz Limit int32 }
type UserSession ¶
Click to show internal directories.
Click to hide internal directories.