Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilLoggerPtr = NewError("nil log.Logger pointer") ErrNilDGoSession = NewError("nil discordgo session") ErrDiscordDisconnected = NewError("discord disconnected") ErrIncorrectNowPlaying = NewError("incorrect ctrack.NowPlaying") )
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Title string `toml:"title"` FirstLine string `toml:"first_line"` SecondLine string `toml:"second_line"` LargeImage string `toml:"large_image"` LargeText string `toml:"large_text"` SmallImage string `toml:"small_image"` SmallText string `toml:"small_text"` ShowButton bool `toml:"show_button"` EndlessMode bool `toml:"endless_mode"` }
type AppStatusUpdater ¶
type AppStatusUpdater struct {
// contains filtered or unexported fields
}
func NewAppStatusUpdater ¶
func NewAppStatusUpdater(app *App) *AppStatusUpdater
func (*AppStatusUpdater) Clear ¶
func (*AppStatusUpdater) Clear() error
func (*AppStatusUpdater) Login ¶
func (*AppStatusUpdater) Login(id string) error
func (*AppStatusUpdater) Logout ¶
func (*AppStatusUpdater) Logout() error
func (*AppStatusUpdater) Set ¶
func (a *AppStatusUpdater) Set(t RT) error
type Config ¶
type Config struct { LastFM LastFMConfig `toml:"lastfm"` Discord DiscordConfig `toml:"discord"` App AppConfig `toml:"app"` }
func ParseConfig ¶
type DiscordConfig ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func ErrEmptyField ¶
func (Error) IsEmptyField ¶
type LastFMConfig ¶
type RT ¶
type RT = lastfm.UserGetRecentTracks
type StatusUpdater ¶
type TokenModeStatusUpdater ¶
type TokenModeStatusUpdater struct { Session *dgo.Session // contains filtered or unexported fields }
func NewTokenModeStatusUpdater ¶
func NewTokenModeStatusUpdater(app *App) *TokenModeStatusUpdater
func (*TokenModeStatusUpdater) Clear ¶
func (tmsu *TokenModeStatusUpdater) Clear() error
func (*TokenModeStatusUpdater) Login ¶
func (tmsu *TokenModeStatusUpdater) Login(token string) error
func (*TokenModeStatusUpdater) Logout ¶
func (tmsu *TokenModeStatusUpdater) Logout() error
func (*TokenModeStatusUpdater) Set ¶
func (tmsu *TokenModeStatusUpdater) Set(t RT) error
Click to show internal directories.
Click to hide internal directories.