config

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL