Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type INewsRepository ¶
type INewsRepository interface { SaveRecord(context.Context, *newsmodel.News) (int64, error) SaveNewsID(context.Context, *newsmodel.News) error }
INewsRepository type
func NewNewsRepository ¶
func NewNewsRepository(db *sql.DB, esClient *elasticv7.Client) INewsRepository
NewNewsRepository - Create news repository
Click to show internal directories.
Click to hide internal directories.