Documentation
¶
Index ¶
- type CreateLikeParams
- type CreateMatchParams
- type CreateUserParams
- type DBTX
- type DeleteLikeParams
- type DeleteMatchParams
- type GetLikeByUsersParams
- type GetMatchByUserIdParams
- type Like
- type LikeTxParams
- type LikeTxResult
- type ListMatchesParams
- type ListUsersParams
- type Match
- type Message
- type Queries
- func (q *Queries) CreateLike(ctx context.Context, arg CreateLikeParams) (Like, error)
- func (q *Queries) CreateMatch(ctx context.Context, arg CreateMatchParams) (Match, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteLike(ctx context.Context, arg DeleteLikeParams) error
- func (q *Queries) DeleteMatch(ctx context.Context, arg DeleteMatchParams) error
- func (q *Queries) DeleteUser(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) GetLike(ctx context.Context, id pgtype.UUID) (Like, error)
- func (q *Queries) GetLikeByUsers(ctx context.Context, arg GetLikeByUsersParams) (Like, error)
- func (q *Queries) GetMatchByMatchID(ctx context.Context, id pgtype.UUID) (Match, error)
- func (q *Queries) GetMatchByUserId(ctx context.Context, arg GetMatchByUserIdParams) ([]Match, error)
- func (q *Queries) GetUser(ctx context.Context, id pgtype.UUID) (User, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) ListLikesReceived(ctx context.Context, receiverID pgtype.UUID) ([]Like, error)
- func (q *Queries) ListLikesSent(ctx context.Context, senderID pgtype.UUID) ([]Like, error)
- func (q *Queries) ListMatches(ctx context.Context, arg ListMatchesParams) ([]Match, error)
- func (q *Queries) ListUsers(ctx context.Context, arg ListUsersParams) ([]User, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Store
- type UpdateUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateLikeParams ¶
type CreateMatchParams ¶
type CreateUserParams ¶
type DeleteLikeParams ¶
type DeleteMatchParams ¶
type GetLikeByUsersParams ¶
type GetMatchByUserIdParams ¶
type LikeTxParams ¶
type LikeTxResult ¶
type ListMatchesParams ¶
type ListUsersParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateLike ¶
func (*Queries) CreateMatch ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteLike ¶
func (q *Queries) DeleteLike(ctx context.Context, arg DeleteLikeParams) error
func (*Queries) DeleteMatch ¶
func (q *Queries) DeleteMatch(ctx context.Context, arg DeleteMatchParams) error
func (*Queries) DeleteUser ¶
func (*Queries) GetLikeByUsers ¶
func (*Queries) GetMatchByMatchID ¶
func (*Queries) GetMatchByUserId ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) ListLikesReceived ¶
func (*Queries) ListLikesSent ¶
func (*Queries) ListMatches ¶
func (*Queries) UpdateUser ¶
type Store ¶
type Store struct { *Queries // contains filtered or unexported fields }
func (*Store) LikeTx ¶
func (store *Store) LikeTx(ctx context.Context, arg LikeTxParams) (LikeTxResult, error)
LikeTx perform a like on one account to another check if like already exist, create a like record, check if there is a match, then create a match record if there is
type UpdateUserParams ¶
type UpdateUserParams struct { ID pgtype.UUID `json:"id"` Username string `json:"username"` Email string `json:"email"` Password string `json:"password"` Gender string `json:"gender"` University string `json:"university"` Picture []byte `json:"picture"` Bio string `json:"bio"` BioPictures []string `json:"bio_pictures"` }
type User ¶
type User struct { ID pgtype.UUID `json:"id"` Username string `json:"username"` Email string `json:"email"` Password string `json:"password"` Gender string `json:"gender"` University string `json:"university"` Picture []byte `json:"picture"` Bio string `json:"bio"` BioPictures []string `json:"bio_pictures"` CreatedAt pgtype.Timestamptz `json:"created_at"` }
Click to show internal directories.
Click to hide internal directories.