Documentation ¶
Index ¶
- type CheckTokenParams
- type CreateMessageParams
- type CreateTokenParams
- type CreateUserParams
- type DBTX
- type DeactivateTokenParams
- type DeleteMessageParams
- type DeleteTokensParams
- type GetMessageParams
- type GetUserFromTokenParams
- type GetUserMessagesParams
- type Message
- type Queries
- func (q *Queries) CheckToken(ctx context.Context, arg CheckTokenParams) (bool, error)
- func (q *Queries) CheckUser(ctx context.Context, email string) (bool, error)
- func (q *Queries) CreateMessage(ctx context.Context, arg CreateMessageParams) (*Message, error)
- func (q *Queries) CreateToken(ctx context.Context, arg CreateTokenParams) (*Token, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (*User, error)
- func (q *Queries) DeactivateToken(ctx context.Context, arg DeactivateTokenParams) error
- func (q *Queries) DeleteMessage(ctx context.Context, arg DeleteMessageParams) (*Message, error)
- func (q *Queries) DeleteTokens(ctx context.Context, arg DeleteTokensParams) error
- func (q *Queries) GetMessage(ctx context.Context, arg GetMessageParams) (*Message, error)
- func (q *Queries) GetUserFromEmail(ctx context.Context, email string) (*User, error)
- func (q *Queries) GetUserFromToken(ctx context.Context, arg GetUserFromTokenParams) (*User, error)
- func (q *Queries) GetUserMessageCount(ctx context.Context, userID int64) (int64, error)
- func (q *Queries) GetUserMessages(ctx context.Context, arg GetUserMessagesParams) ([]*Message, error)
- func (q *Queries) UpdateMessage(ctx context.Context, arg UpdateMessageParams) (*Message, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (*User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Token
- type UpdateMessageParams
- type UpdateUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckTokenParams ¶
type CreateMessageParams ¶
type CreateTokenParams ¶
type CreateUserParams ¶
type DeactivateTokenParams ¶
type DeleteMessageParams ¶
type DeleteTokensParams ¶
type GetMessageParams ¶
type GetUserFromTokenParams ¶
type GetUserMessagesParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CheckToken ¶
func (*Queries) CreateMessage ¶
func (*Queries) CreateToken ¶
func (*Queries) CreateUser ¶
func (*Queries) DeactivateToken ¶
func (q *Queries) DeactivateToken(ctx context.Context, arg DeactivateTokenParams) error
func (*Queries) DeleteMessage ¶
func (*Queries) DeleteTokens ¶
func (q *Queries) DeleteTokens(ctx context.Context, arg DeleteTokensParams) error
func (*Queries) GetMessage ¶
func (*Queries) GetUserFromEmail ¶
func (*Queries) GetUserFromToken ¶
func (*Queries) GetUserMessageCount ¶
func (*Queries) GetUserMessages ¶
func (*Queries) UpdateMessage ¶
func (*Queries) UpdateUser ¶
type UpdateMessageParams ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.