Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostRepository ¶
type PostRepository interface {
Save(post *entity.Post) (*entity.Post, error)
FindAll() ([]entity.Post, error)
FindByID(id int) (*entity.Post, error)
Delete(id int) error
}
func NewDynamoDBRepository ¶
func NewDynamoDBRepository() PostRepository
NewDynamoDBRepository is the constructor function for the repo
Click to show internal directories.
Click to hide internal directories.