Documentation
¶
Index ¶
- type Storage
- func (s *Storage) AddOrGetUser(chatID int64) (User, error)
- func (s *Storage) GetAPIKey(chatID int64) (string, error)
- func (s *Storage) GetAllSubscriptions(chatID int64) ([]Subscription, error)
- func (s *Storage) GetAllUsers() ([]User, error)
- func (s *Storage) GetLastUpdateCheck(chatID int64) (int64, error)
- func (s *Storage) GetSubscription(chatID, titleID int64) (*Subscription, error)
- func (s *Storage) GetUTCOffset(chatID int64) (int, error)
- func (s *Storage) SetAPIKey(chatID int64, apiKey string) error
- func (s *Storage) SetLastUpdateCheck(chatID int64, timestamp int64) error
- func (s *Storage) SetLatestSubtitleTimestamp(chatID, titleID, latestSubtitleTime int64) error
- func (s *Storage) SetName(chatID, titleID int64, name string) error
- func (s *Storage) SetNotificationInterval(chatID int64, interval int) error
- func (s *Storage) SetUTCOffset(chatID int64, offsetMinutes int) error
- func (s *Storage) Subscribe(chatID, titleID, latestSubtitleTime int64, name string) error
- func (s *Storage) SubscriptionExists(chatID, titleID int64) (bool, error)
- func (s *Storage) Unsubscribe(chatID, titleID int64) error
- type Subscription
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶ added in v0.0.5
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶ added in v0.1.1
func (*Storage) AddOrGetUser ¶ added in v0.0.5
func (*Storage) GetAllSubscriptions ¶ added in v0.0.5
func (s *Storage) GetAllSubscriptions(chatID int64) ([]Subscription, error)
func (*Storage) GetAllUsers ¶ added in v0.0.5
func (*Storage) GetLastUpdateCheck ¶ added in v0.1.1
func (*Storage) GetSubscription ¶ added in v0.0.7
func (s *Storage) GetSubscription( chatID, titleID int64, ) (*Subscription, error)
func (*Storage) GetUTCOffset ¶ added in v0.1.2
func (*Storage) SetLastUpdateCheck ¶ added in v0.1.1
func (*Storage) SetLatestSubtitleTimestamp ¶ added in v0.0.5
func (*Storage) SetNotificationInterval ¶ added in v0.0.5
func (*Storage) SetUTCOffset ¶ added in v0.1.2
func (*Storage) SubscriptionExists ¶ added in v0.0.5
func (*Storage) Unsubscribe ¶ added in v0.0.5
type Subscription ¶
Click to show internal directories.
Click to hide internal directories.