Documentation
¶
Index ¶
- type Queries
- func (q *Queries) CreateComment(id, userID, postID, content string, createdAt time.Time) error
- func (q *Queries) CreatePost(id, userID, content string, createdAt time.Time) error
- func (q *Queries) CreateUser(id, email, username string, createdAt time.Time) error
- func (q *Queries) CreateUserFollow(followerID, followedID string, createdAt time.Time) error
- func (q *Queries) DeleteUserFollow(followerID, followedID string) error
- func (q *Queries) GetComments(postID string) ([]model.Comment, error)
- func (q *Queries) GetFollowersByUsername(username string) ([]model.User, error)
- func (q *Queries) GetFollowingByUsername(username string) ([]model.User, error)
- func (q *Queries) GetFollowingPosts(ids []interface{}) ([]model.Post, error)
- func (q *Queries) GetPostByID(id string) (model.Post, error)
- func (q *Queries) GetPosts() ([]model.Post, error)
- func (q *Queries) GetPostsByUsername(username string) ([]model.Post, error)
- func (q *Queries) GetUserByEmail(email string) (model.User, error)
- func (q *Queries) GetUserByUsername(username string) (model.User, error)
- func (q *Queries) UserExistsByEmail(email string) (bool, error)
- func (q *Queries) UserExistsByID(id string) (bool, error)
- func (q *Queries) UserExistsByUsername(username string) (bool, error)
- func (q *Queries) UserFollowExists(followerID, followedID string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateComment ¶
func (*Queries) CreatePost ¶
func (*Queries) CreateUser ¶
func (*Queries) CreateUserFollow ¶
func (*Queries) DeleteUserFollow ¶
func (*Queries) GetFollowersByUsername ¶
func (*Queries) GetFollowingByUsername ¶
func (*Queries) GetFollowingPosts ¶
func (*Queries) GetPostsByUsername ¶
func (*Queries) GetUserByUsername ¶
func (*Queries) UserExistsByUsername ¶
Click to show internal directories.
Click to hide internal directories.