config

package
v0.0.0-...-1fa1717 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: GPL-3.0 Imports: 4 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 {
	OutDirPath string  `toml:"out_dir_path"`
	RulesPath  string  `toml:"rules_path"`
	Radiko     Radiko  `toml:"radiko"`
	Feed       Server  `toml:"feed"`
	Dropbox    Dropbox `toml:"dropbox"`
}

func Parse

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

type Dropbox

type Dropbox struct {
	Enabled bool   `toml:"enabled"`
	Token   string `toml:"-"`
}

type Radiko

type Radiko struct {
	OffsetTimeStr      string `toml:"offset_time"`
	PlannerIntervalStr string `toml:"planner_interval"`
	FetchTimeoutStr    string `toml:"fetch_timeout"`

	OffsetTime      time.Duration `toml:"-"`
	PlannerInterval time.Duration `toml:"-"`
	FetchTimeout    time.Duration `toml:"-"`
}

type Server

type Server struct {
	Enabled bool   `toml:"enabled"`
	Port    int    `toml:"port"`
	BaseURL string `toml:"base_url"`
}

Jump to

Keyboard shortcuts

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