Documentation ¶
Index ¶
- type Abonnement
- type AbonnementStorage
- type Abonnements
- func (db *Abonnements) Create(chatId int64, chatTitle string, feedUrl string, lastEntry *string) error
- func (db *Abonnements) Delete(chatId int64, feedId int64) error
- func (db *Abonnements) ExistsByFeedUrl(chatId int64, feedUrl string) (bool, error)
- func (db *Abonnements) ExistsById(chatId int64, feedId int64) (bool, error)
- func (db *Abonnements) GetAll() ([]Abonnement, error)
- func (db *Abonnements) GetByUser(chatId int64) ([]Feed, error)
- func (db *Abonnements) SetLastEntry(feedUrl string, lastEntry *string) error
- type Chat
- type DB
- type Feed
- type Replacement
- type Replacements
- type ReplacementsStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Abonnement ¶
type AbonnementStorage ¶
type AbonnementStorage interface { Create(chatId int64, chatTitle string, feedUrl string, lastEntry *string) error Delete(chatId int64, feedId int64) error ExistsByFeedUrl(chatId int64, feedUrl string) (bool, error) ExistsById(chatId int64, feedId int64) (bool, error) GetByUser(chatId int64) ([]Feed, error) GetAll() ([]Abonnement, error) SetLastEntry(feedUrl string, lastEntry *string) error }
type Abonnements ¶
func (*Abonnements) ExistsByFeedUrl ¶
func (db *Abonnements) ExistsByFeedUrl(chatId int64, feedUrl string) (bool, error)
func (*Abonnements) ExistsById ¶
func (db *Abonnements) ExistsById(chatId int64, feedId int64) (bool, error)
func (*Abonnements) GetAll ¶
func (db *Abonnements) GetAll() ([]Abonnement, error)
func (*Abonnements) SetLastEntry ¶
func (db *Abonnements) SetLastEntry(feedUrl string, lastEntry *string) error
type DB ¶
type DB struct { *sqlx.DB Abonnements AbonnementStorage Replacements ReplacementsStorage }
type Feed ¶
type Replacement ¶
type Replacements ¶
func (*Replacements) Delete ¶
func (db *Replacements) Delete(replacementId int64) error
func (*Replacements) List ¶
func (db *Replacements) List() ([]Replacement, error)
type ReplacementsStorage ¶
Click to show internal directories.
Click to hide internal directories.