Documentation ¶
Index ¶
- type ChangeEmailParams
- type ChangePasswordParams
- type CreateReminderParams
- type CreateSessionParams
- type CreateUserParams
- type DBTX
- type DeactivateUserParams
- type DeleteReminderParams
- type GetReminderConfigsParams
- type GetReminderParams
- type ListRemindersParams
- type Querier
- type Queries
- func (q *Queries) ChangeEmail(ctx context.Context, arg ChangeEmailParams) (User, error)
- func (q *Queries) ChangePassword(ctx context.Context, arg ChangePasswordParams) (User, error)
- func (q *Queries) CreateReminder(ctx context.Context, arg CreateReminderParams) (Reminder, error)
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeactivateUser(ctx context.Context, arg DeactivateUserParams) (User, error)
- func (q *Queries) DeleteReminder(ctx context.Context, arg DeleteReminderParams) error
- func (q *Queries) GetReminder(ctx context.Context, arg GetReminderParams) (Reminder, error)
- func (q *Queries) GetReminderConfigs(ctx context.Context, arg GetReminderConfigsParams) (json.RawMessage, error)
- func (q *Queries) GetSession(ctx context.Context, id uuid.UUID) (Session, error)
- func (q *Queries) GetUser(ctx context.Context, userID int64) (User, error)
- func (q *Queries) ListReminders(ctx context.Context, arg ListRemindersParams) ([]Reminder, error)
- func (q *Queries) SetNewInterval(ctx context.Context, arg SetNewIntervalParams) (Reminder, error)
- func (q *Queries) SetReminderConfigs(ctx context.Context, arg SetReminderConfigsParams) (Reminder, error)
- func (q *Queries) UpdateReminder(ctx context.Context, arg UpdateReminderParams) (Reminder, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Reminder
- type Session
- type SetNewIntervalParams
- type SetReminderConfigsParams
- type UpdateReminderParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeEmailParams ¶
type ChangePasswordParams ¶
type CreateReminderParams ¶
type CreateReminderParams struct { UserID int64 `json:"user_id"` WebsiteUrl string `json:"website_url"` Interval string `json:"interval"` Extension json.RawMessage `json:"extension"` }
type CreateSessionParams ¶
type CreateUserParams ¶
type DeactivateUserParams ¶
type DeleteReminderParams ¶
type GetReminderParams ¶
type ListRemindersParams ¶
type Querier ¶
type Querier interface { ChangeEmail(ctx context.Context, arg ChangeEmailParams) (User, error) ChangePassword(ctx context.Context, arg ChangePasswordParams) (User, error) CreateReminder(ctx context.Context, arg CreateReminderParams) (Reminder, error) CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error) CreateUser(ctx context.Context, arg CreateUserParams) (User, error) DeactivateUser(ctx context.Context, arg DeactivateUserParams) (User, error) DeleteReminder(ctx context.Context, arg DeleteReminderParams) error GetReminder(ctx context.Context, arg GetReminderParams) (Reminder, error) GetReminderConfigs(ctx context.Context, arg GetReminderConfigsParams) (json.RawMessage, error) GetSession(ctx context.Context, id uuid.UUID) (Session, error) GetUser(ctx context.Context, userID int64) (User, error) ListReminders(ctx context.Context, arg ListRemindersParams) ([]Reminder, error) SetNewInterval(ctx context.Context, arg SetNewIntervalParams) (Reminder, error) SetReminderConfigs(ctx context.Context, arg SetReminderConfigsParams) (Reminder, error) UpdateReminder(ctx context.Context, arg UpdateReminderParams) (Reminder, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ChangeEmail ¶
func (*Queries) ChangePassword ¶
func (*Queries) CreateReminder ¶
func (*Queries) CreateSession ¶
func (*Queries) CreateUser ¶
func (*Queries) DeactivateUser ¶
func (*Queries) DeleteReminder ¶
func (q *Queries) DeleteReminder(ctx context.Context, arg DeleteReminderParams) error
func (*Queries) GetReminder ¶
func (*Queries) GetReminderConfigs ¶
func (q *Queries) GetReminderConfigs(ctx context.Context, arg GetReminderConfigsParams) (json.RawMessage, error)
func (*Queries) GetSession ¶
func (*Queries) ListReminders ¶
func (*Queries) SetNewInterval ¶
func (*Queries) SetReminderConfigs ¶
func (*Queries) UpdateReminder ¶
type Session ¶
type Session struct { ID uuid.UUID `json:"id"` UserID int64 `json:"user_id"` RefreshToken string `json:"refresh_token"` UserAgent string `json:"user_agent"` ClientIp string `json:"client_ip"` IsBlocked bool `json:"is_blocked"` ExpiresAt time.Time `json:"expires_at"` CreatedAt time.Time `json:"created_at"` }
type SetNewIntervalParams ¶
type SetReminderConfigsParams ¶
type SetReminderConfigsParams struct { UpdatedExtension json.RawMessage `json:"updated_extension"` ID int64 `json:"id"` WebsiteUrl string `json:"website_url"` }
type UpdateReminderParams ¶
Click to show internal directories.
Click to hide internal directories.