Documentation
¶
Index ¶
- type Postgres
- func (t *Postgres) AddAdmin(userID string) error
- func (t *Postgres) AddFavorite(userID, ident string) error
- func (t *Postgres) Close() error
- func (t *Postgres) GetAdmins() ([]string, error)
- func (t *Postgres) GetApiKey(userID string) (string, error)
- func (t *Postgres) GetFavorites(userID string) ([]string, error)
- func (t *Postgres) GetGuildFilters(guildID string) (GuildFilters, error)
- func (t *Postgres) GetGuildVolume(guildID string) (int, error)
- func (t *Postgres) GetPlaybackLog(guildID, ident, userID string, limit, offset int) ([]PlaybackLogEntry, error)
- func (t *Postgres) GetPlaybackLogSize() (int, error)
- func (t *Postgres) GetPlaybackStats(guildID, userID string) ([]PlaybackStats, error)
- func (t *Postgres) GetSound(uid string) (Sound, error)
- func (t *Postgres) GetSounds() ([]Sound, error)
- func (t *Postgres) GetTwitchSettings(twitchname string) (TwitchSettings, error)
- func (t *Postgres) GetUserByApiKey(token string) (string, error)
- func (t *Postgres) GetUserFastTrigger(userID string) (string, error)
- func (t *Postgres) IsAdmin(userID string) (bool, error)
- func (t *Postgres) Migrate() error
- func (t *Postgres) PutPlaybackLog(e PlaybackLogEntry) error
- func (t *Postgres) PutSound(sound Sound) error
- func (t *Postgres) RemoveAdmin(userID string) error
- func (t *Postgres) RemoveApiKey(userID string) error
- func (t *Postgres) RemoveFavorite(userID, ident string) error
- func (t *Postgres) RemoveSound(uid string) error
- func (t *Postgres) SetApiKey(userID, token string) error
- func (t *Postgres) SetGuildFilters(guildID string, f GuildFilters) error
- func (t *Postgres) SetGuildVolume(guildID string, volume int) error
- func (t *Postgres) SetTwitchSettings(s TwitchSettings) error
- func (t *Postgres) SetUserFastTrigger(userID, ident string) error
- type PostgresConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func NewPostgres ¶
func NewPostgres(c PostgresConfig) (*Postgres, error)
func (*Postgres) AddFavorite ¶
func (*Postgres) GetGuildFilters ¶
func (*Postgres) GetPlaybackLog ¶
func (*Postgres) GetPlaybackLogSize ¶
func (*Postgres) GetPlaybackStats ¶
func (*Postgres) GetTwitchSettings ¶ added in v1.5.0
func (*Postgres) GetUserFastTrigger ¶
func (*Postgres) PutPlaybackLog ¶
func (*Postgres) RemoveAdmin ¶
func (*Postgres) RemoveApiKey ¶
func (*Postgres) RemoveFavorite ¶
func (*Postgres) RemoveSound ¶
func (*Postgres) SetGuildFilters ¶
func (*Postgres) SetGuildVolume ¶
func (*Postgres) SetTwitchSettings ¶ added in v1.5.0
func (*Postgres) SetUserFastTrigger ¶
Click to show internal directories.
Click to hide internal directories.