Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
MockRepository represents a mocked repository
func (*MockRepository) Delete ¶
func (mock *MockRepository) Delete(post *entity.Post) error
Delete deletes a post from database
type PostRepository ¶
type PostRepository interface { Save(post *entity.Post) (*entity.Post, error) FindAll() ([]entity.Post, error) Delete(post *entity.Post) error }
PostRepository holds post collection operations
func NewFirestoreRepository ¶
func NewFirestoreRepository() PostRepository
NewFirestoreRepository returns a new instance which implements PostRepository
func NewSQLiteRepository ¶
func NewSQLiteRepository() PostRepository
NewSQLiteRepository implement post repository using sqlite engine
Click to show internal directories.
Click to hide internal directories.