config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPath string

	Debug = log.New(os.Stderr, "", 0)
)
View Source
var Cfg = struct {
	ClientSecretPath  string
	TokenPath         string
	CalendarID        string
	PollInterval      Duration
	LookaheadInterval Duration
	Debug             bool
}{
	PollInterval:      Duration{3 * time.Minute},
	LookaheadInterval: Duration{24 * time.Hour},
}

Functions

func Parse

func Parse(configFilePath string)

Types

type Duration

type Duration struct{ D time.Duration }

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(data []byte) (err error)

Jump to

Keyboard shortcuts

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