Documentation ¶
Index ¶
- type CommentStore
- func (s *CommentStore) Comment(id uuid.UUID) (goddit.Comment, error)
- func (s *CommentStore) CommentsByPost(postID uuid.UUID) ([]goddit.Comment, error)
- func (s *CommentStore) CreateComment(c *goddit.Comment) error
- func (s *CommentStore) DeleteComment(id uuid.UUID) error
- func (s *CommentStore) UpdateComment(c *goddit.Comment) error
- type PostStore
- func (s *PostStore) CreatePost(p *goddit.Post) error
- func (s *PostStore) DeletePost(id uuid.UUID) error
- func (s *PostStore) Post(id uuid.UUID) (goddit.Post, error)
- func (s *PostStore) Posts() ([]goddit.Post, error)
- func (s *PostStore) PostsByThread(threadID uuid.UUID) ([]goddit.Post, error)
- func (s *PostStore) UpdatePost(p *goddit.Post) error
- type Store
- type ThreadStore
- type UserStore
- func (s *UserStore) CreateUser(u *goddit.User) error
- func (s *UserStore) DeleteUser(id uuid.UUID) error
- func (s *UserStore) UpdateUser(u *goddit.User) error
- func (s *UserStore) User(id uuid.UUID) (goddit.User, error)
- func (s *UserStore) UserByUsername(username string) (goddit.User, error)
- func (s *UserStore) Users() ([]goddit.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentStore ¶
func (*CommentStore) CommentsByPost ¶
func (*CommentStore) CreateComment ¶
func (s *CommentStore) CreateComment(c *goddit.Comment) error
func (*CommentStore) DeleteComment ¶
func (s *CommentStore) DeleteComment(id uuid.UUID) error
func (*CommentStore) UpdateComment ¶
func (s *CommentStore) UpdateComment(c *goddit.Comment) error
type PostStore ¶
func (*PostStore) PostsByThread ¶
type Store ¶
type Store struct { *ThreadStore *PostStore *CommentStore *UserStore }
type ThreadStore ¶
func (*ThreadStore) CreateThread ¶
func (s *ThreadStore) CreateThread(t *goddit.Thread) error
func (*ThreadStore) DeleteThread ¶
func (s *ThreadStore) DeleteThread(id uuid.UUID) error
func (*ThreadStore) UpdateThread ¶
func (s *ThreadStore) UpdateThread(t *goddit.Thread) error
type UserStore ¶
func (*UserStore) UserByUsername ¶
Click to show internal directories.
Click to hide internal directories.