Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseHelper ¶
DatabaseHelper is the struct
func GetDatabaseMock ¶
func GetDatabaseMock() DatabaseHelper
GetDatabaseMock is the Mock database in memory
type PromotionDataSource ¶
type PromotionDataSource interface { Add(data *model.Promotion) error GetAll() ([]model.Promotion, error) Get(id int) (model.Promotion, error) }
PromotionDataSource is the interface
func NewPromotionDataSource ¶
func NewPromotionDataSource(db DatabaseHelper) PromotionDataSource
NewPromotionDataSource is the new promotion datasource
Click to show internal directories.
Click to hide internal directories.