repository

package
v0.0.0-...-0e56039 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article interface {
	Save(article *domain.Article)
	SaveAll(articles []*domain.Article)
	GetNewTg() []*domain.Article
	MarkAsSentTG(article *domain.Article)
}

Article repository interface

type ArticlePostgreRepository

type ArticlePostgreRepository struct {
	// contains filtered or unexported fields
}

ArticlePostgreRepository repository

func CreateArticlePostgreRepository

func CreateArticlePostgreRepository(db *gorm.DB) *ArticlePostgreRepository

CreateArticlePostgreRepository creates the repository

func (ArticlePostgreRepository) GetNewTg

func (r ArticlePostgreRepository) GetNewTg() []*domain.Article

GetNewTg returns new articles

func (ArticlePostgreRepository) MarkAsSentTG

func (r ArticlePostgreRepository) MarkAsSentTG(article *domain.Article)

MarkAsSentTG mark article as sent to tg

func (ArticlePostgreRepository) Save

func (r ArticlePostgreRepository) Save(article *domain.Article)

Save saves an article

func (ArticlePostgreRepository) SaveAll

func (r ArticlePostgreRepository) SaveAll(articles []*domain.Article)

SaveAll saves several articles

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL