Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentStore ¶
type CommentStore interface { Comment(id uuid.UUID) (Comment, error) CommentsByPost(PostID uuid.UUID) ([]Comment, error) CreateComment(t *Comment) error UpdateComment(t *Comment) error DeleteComment(id uuid.UUID) error }
CommentStore is an interface abstraction for interacting with comments
type PostStore ¶
type PostStore interface { Post(id uuid.UUID) (Post, error) PostsByThread(ThreadID uuid.UUID) ([]Post, error) Posts() ([]Post, error) CreatePost(t *Post) error UpdatePost(t *Post) error DeletePost(id uuid.UUID) error }
PostStore is an interface abstraction for interacting with posts
type Store ¶
type Store interface { ThreadStore PostStore CommentStore UserStore }
Store is a wrapper to help pass our DB stores to our app server using DI
type ThreadStore ¶
type ThreadStore interface { Thread(id uuid.UUID) (Thread, error) Threads() ([]Thread, error) CreateThread(t *Thread) error UpdateThread(t *Thread) error DeleteThread(id uuid.UUID) error }
ThreadStore is an interface abstraction for interacting with threads
Click to show internal directories.
Click to hide internal directories.