Documentation ¶
Index ¶
- Variables
- type DB
- func (db *DB) AddMentionsToTag(ctx context.Context, chatID int64, name string, mentions ...string) error
- func (db *DB) ChangeDescriptionOfTag(ctx context.Context, chatID int64, name, description string) error
- func (db *DB) GetTags(ctx context.Context, chatID int64) ([]Tag, error)
- func (db *DB) GetTimezones(ctx context.Context, chatID int64) ([]Timezone, error)
- func (db *DB) NewTag(ctx context.Context, chatID int64, name, description string, ...) error
- func (db *DB) NewTimezone(ctx context.Context, chatID int64, username, tz, description string) error
- func (db *DB) RemoveMentionsFromTag(ctx context.Context, chatID int64, name string, mentions ...string) error
- func (db *DB) RemoveTag(ctx context.Context, chatID int64, name string) error
- func (db *DB) RemoveTimezone(ctx context.Context, chatID int64, username string) error
- func (db *DB) RenameTag(ctx context.Context, chatID int64, oldName, newName string) error
- type Tag
- type Timezone
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTagAlreadyExists = errors.New("tag already exists") ErrNoTagsFound = errors.New("no tags found") ErrTagDoesntExist = errors.New("tag doesn't exist") ErrEmptyTag = errors.New("tag is now empty, removing it") ErrUsersAlreadyInTag = errors.New("provided users are already mentioned by the tag") ErrUsersNotInTag = errors.New("provided users are not mentioned by the tag") )
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddMentionsToTag ¶
func (*DB) ChangeDescriptionOfTag ¶ added in v0.2.0
func (*DB) GetTimezones ¶ added in v0.3.0
func (*DB) NewTimezone ¶ added in v0.3.0
func (*DB) RemoveMentionsFromTag ¶
func (*DB) RemoveTimezone ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.