configs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainOptions

type MainOptions struct {
	Language         string
	ShowTitle        bool
	SongFormat       SongFormat
	PrimaryColor     string
	ShowLyric        bool
	LyricOffset      int
	ShowLyricTrans   bool
	ShowNotify       bool
	NotifyIcon       string
	PProfPort        int
	AltScreen        bool
	EnableMouseEvent bool
	DualColumn       bool
	LastfmKey        string
	LastfmSecret     string
}

type PlayerOptions

type PlayerOptions struct {
	Engine string
}

type ProgressOptions

type ProgressOptions struct {
	model.ProgressOptions
}

type Registry

type Registry struct {
	Startup  StartupOptions
	Progress ProgressOptions
	Spotify  SpotifyOptions
	Main     MainOptions
	Player   PlayerOptions
}
var ConfigRegistry *Registry

func NewRegistryFromIniFile

func NewRegistryFromIniFile(filepath string) *Registry

func NewRegistryWithDefault

func NewRegistryWithDefault() *Registry

func (*Registry) FillToModelOpts

func (r *Registry) FillToModelOpts(opts *model.Options)

type SongFormat

type SongFormat string
const (
	Ogg96  SongFormat = "OGG_96"
	Ogg160 SongFormat = "OGG_160"
	Ogg320 SongFormat = "OGG_320"
)

func (SongFormat) IsValid

func (f SongFormat) IsValid() bool

func (SongFormat) ToSpotifyFormat

func (f SongFormat) ToSpotifyFormat() Spotify.AudioFile_Format

type SpotifyOptions

type SpotifyOptions struct {
	ClientId string
	Cookie   string
}

type StartupOptions

type StartupOptions struct {
	model.StartupOptions
	CheckUpdate bool
}

Jump to

Keyboard shortcuts

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