Documentation
¶
Index ¶
- type Store
- func (s Store) CountPostComments(postId int64) (int, error)
- func (s Store) CountPosts() (int, error)
- func (s Store) DeletePost(id int64) error
- func (s Store) DeletePostComment(commentId int64) error
- func (s Store) DeletePostLike(userId, postId int64) error
- func (s Store) DeleteTokensForUser(userId int64, scope auth.Scope) error
- func (s Store) DeleteUser(id int64) error
- func (s Store) GetComment(postId, commentId int64) (*posts.Comment, error)
- func (s Store) GetPost(id int64) (*posts.Post, error)
- func (s Store) GetUser(id int64) (*auth.User, error)
- func (s Store) GetUserByUsername(username string) (*auth.User, error)
- func (s Store) GetUserForToken(hash []byte, scope auth.Scope) (*auth.User, error)
- func (s Store) InsertPost(post *posts.Post) error
- func (s Store) InsertPostComment(comment *posts.Comment) error
- func (s Store) InsertPostLike(userId, postId int64) error
- func (s Store) InsertToken(token *auth.Token) error
- func (s Store) InsertUser(user *auth.User) error
- func (s Store) ListPostComments(postId int64, limit, offset int) ([]*posts.Comment, error)
- func (s Store) ListPosts(limit, offset int) ([]*posts.Post, error)
- func (s Store) UpdatePost(post *posts.Post) error
- func (s Store) UpdatePostComment(comment *posts.Comment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) CountPosts ¶
func (Store) DeletePost ¶
func (Store) DeletePostComment ¶
func (Store) DeletePostLike ¶
func (Store) DeleteTokensForUser ¶
func (Store) DeleteUser ¶
func (Store) GetComment ¶
func (Store) GetUserByUsername ¶
func (Store) GetUserForToken ¶
func (Store) InsertPostLike ¶
func (Store) ListPostComments ¶
Click to show internal directories.
Click to hide internal directories.