Documentation
¶
Index ¶
- type Storage
- func (r *Storage) AddComment(ctx context.Context, postID int64, newComment *model.NewComment) (*model.Comment, error)
- func (r *Storage) AddPost(ctx context.Context, newPost *model.NewPost) (*model.Post, error)
- func (r *Storage) GetAllPosts(ctx context.Context) ([]*model.Post, error)
- func (r *Storage) GetCommentPath(ctx context.Context, commentID int64) (string, error)
- func (r *Storage) GetCommentsBranch(ctx context.Context, postID int64, path string) ([]*model.Comment, error)
- func (r *Storage) GetPost(ctx context.Context, postID int64) (*model.Post, error)
- func (r *Storage) UpdateEnableCommentToPost(ctx context.Context, postID int64, authorID uuid.UUID, commentsEnabled bool) (*model.Post, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) AddComment ¶
func (*Storage) GetAllPosts ¶
func (*Storage) GetCommentPath ¶
func (*Storage) GetCommentsBranch ¶
Click to show internal directories.
Click to hide internal directories.