config

package
v0.0.0-...-a8d8f77 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerPort   int           `yaml:"server_port"`
	FrontendPort int           `yaml:"frontend_port"`
	DatabasePath string        `yaml:"database"`
	Secret       string        `yaml:"secret"`
	Lastfm       LastfmConfig  `yaml:"lastfm"`
	Spotify      SpotifyConfig `yaml:"spotify"`
}

func NewConfig

func NewConfig(path string) (*Config, error)

type LastfmConfig

type LastfmConfig struct {
	ApiKey string `yaml:"api_key"`
	Secret string `yaml:"shared_secret"`
}

type SpotifyConfig

type SpotifyConfig struct {
	ClientId     string `yaml:"client_id"`
	ClientSecret string `yaml:"client_secret"`
}

Jump to

Keyboard shortcuts

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