Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPlaylistStore ¶
func GetPlaylistStore(cfg *Config, guildID string, logger *zap.Logger, persistent file_storage.StatePersistent) (store.SongStorage, store.StateStorage)
Types ¶
type Config ¶
type Config struct { DiscordToken string `required:"true"` GuildID string CommandPrefix string `required:"true"` Store StoreConfig }
type FileStoreConfig ¶
type FileStoreConfig struct {
Dir string `default:"./playlist"`
}
type StoreConfig ¶
type StoreConfig struct { Type string `default:"memory"` File FileStoreConfig }
Click to show internal directories.
Click to hide internal directories.