Documentation ¶
Index ¶
- type InMemoryStore
- func (s *InMemoryStore) CreateComment(comment *models.Comment) (*models.Comment, error)
- func (s *InMemoryStore) CreatePost(post *models.Post) (*models.Post, error)
- func (s *InMemoryStore) GetComments(postID uint, limit *int, offset *int) ([]models.Comment, error)
- func (s *InMemoryStore) GetPostById(id uint) (*models.Post, error)
- func (s *InMemoryStore) GetPosts() ([]*models.Post, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryStore ¶
func NewInMemoryStore ¶
func NewInMemoryStore() *InMemoryStore
func (*InMemoryStore) CreateComment ¶
func (*InMemoryStore) CreatePost ¶
func (*InMemoryStore) GetComments ¶
func (*InMemoryStore) GetPostById ¶
func (s *InMemoryStore) GetPostById(id uint) (*models.Post, error)
Click to show internal directories.
Click to hide internal directories.