Documentation ¶
Index ¶
- type CreateFollowerParams
- type CreateUserParams
- type DBTX
- type DeleteFollowerParams
- type ListFolloweesParams
- type ListFollowersParams
- type Queries
- func (q *Queries) CreateFollower(ctx context.Context, arg CreateFollowerParams) (UserFollower, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteFollower(ctx context.Context, arg DeleteFollowerParams) error
- func (q *Queries) GetFolloweesCount(ctx context.Context, followerID string) (int64, error)
- func (q *Queries) GetFollowersCount(ctx context.Context, followeeID string) (int64, error)
- func (q *Queries) GetUser(ctx context.Context, username string) (User, error)
- func (q *Queries) ListFollowees(ctx context.Context, arg ListFolloweesParams) ([]UserFollower, error)
- func (q *Queries) ListFollowers(ctx context.Context, arg ListFollowersParams) ([]UserFollower, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type User
- type UserFollower
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateFollowerParams ¶
type CreateUserParams ¶
type DeleteFollowerParams ¶
type ListFolloweesParams ¶
type ListFollowersParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateFollower ¶
func (q *Queries) CreateFollower(ctx context.Context, arg CreateFollowerParams) (UserFollower, error)
func (*Queries) CreateUser ¶
func (*Queries) DeleteFollower ¶
func (q *Queries) DeleteFollower(ctx context.Context, arg DeleteFollowerParams) error
func (*Queries) GetFolloweesCount ¶
func (*Queries) GetFollowersCount ¶
func (*Queries) ListFollowees ¶
func (q *Queries) ListFollowees(ctx context.Context, arg ListFolloweesParams) ([]UserFollower, error)
func (*Queries) ListFollowers ¶
func (q *Queries) ListFollowers(ctx context.Context, arg ListFollowersParams) ([]UserFollower, error)
type User ¶
type User struct { Username string `json:"username"` HashedPassword string `json:"hashed_password"` FullName string `json:"full_name"` Email string `json:"email"` DateOfBirth time.Time `json:"date_of_birth"` PasswordChangedAt time.Time `json:"password_changed_at"` CreatedAt time.Time `json:"created_at"` }
type UserFollower ¶
Click to show internal directories.
Click to hide internal directories.