Documentation ¶
Index ¶
- Variables
- type Database
- type Feed
- type SQLite
- func (d *SQLite) AddFeed(name, repo, filter, messagePattern string) (int, error)
- func (d *SQLite) AddSubscribtion(endpoint, url, filter string, chatID int64) error
- func (d *SQLite) GetEndpointInfo(endpoint, url, filter string) ([]int64, error)
- func (d *SQLite) GetFeed(name string) (*Feed, error)
- func (d *SQLite) GetLastTag(url, filter string) string
- func (d *SQLite) GetLastUpdateTime(url, filter string) time.Time
- func (d *SQLite) GetNotificationMethods(url, filter string) ([]string, error)
- func (d *SQLite) ListFeeds() ([]*Feed, error)
- func (d *SQLite) RemoveSubscribtion(endpoint, url, filter string, chatID int64) error
- func (d *SQLite) UpdateLastUpdateTime(url, filter, tag string, t time.Time)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists error = fmt.Errorf("already exists")
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { GetLastUpdateTime(url, filter string) time.Time GetLastTag(url, filter string) string UpdateLastUpdateTime(url, filter, tag string, t time.Time) AddFeed(name, repo, filter, messagePattern string) (int, error) GetFeed(name string) (*Feed, error) ListFeeds() ([]*Feed, error) // Subscriptions AddSubscribtion(endpoint, url, filter string, chatID int64) error RemoveSubscribtion(endpoint, url, filter string, chatID int64) error // Notification methods GetNotificationMethods(url, filter string) ([]string, error) // Endpoints GetEndpointInfo(endpoint, url, filter string) ([]int64, error) }
type SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
func (*SQLite) AddSubscribtion ¶
func (*SQLite) GetEndpointInfo ¶
func (*SQLite) GetLastTag ¶
GetLastTag - gets Last Tag
func (*SQLite) GetLastUpdateTime ¶
GetLastUpdateTime - gets Last Update Time
func (*SQLite) GetNotificationMethods ¶
func (*SQLite) RemoveSubscribtion ¶
Click to show internal directories.
Click to hide internal directories.