Documentation ¶
Index ¶
- func New(url string) (bot.Storage, error)
- type Repository
- func (s *Repository) AddTag(ctx context.Context, user *bot.User, search string, tags []string) error
- func (s *Repository) GetUserByTelegramID(ctx context.Context, id int64) (*bot.User, error)
- func (s *Repository) IterEntries(ctx context.Context, user *bot.User, from time.Time, tags []string) (<-chan *bot.Entry, error)
- func (s *Repository) ListTag(ctx context.Context, user *bot.User, search []string) ([]string, error)
- func (s *Repository) RemoveTag(ctx context.Context, user *bot.User, tags []string) error
- func (s *Repository) SaveEntry(ctx context.Context, user *bot.User, entry *bot.Entry) (*bot.Entry, error)
- func (s *Repository) SaveReplyID(ctx context.Context, user *bot.User, message, reply int64) error
- func (s *Repository) SaveUser(ctx context.Context, user *bot.User) (*bot.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) GetUserByTelegramID ¶
func (*Repository) IterEntries ¶
func (*Repository) SaveReplyID ¶
Click to show internal directories.
Click to hide internal directories.