config

package
v0.0.0-...-69b0943 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TripplConfig

type TripplConfig struct {
	EmployeeToken    string  `required:"true" split_words:"true"`
	ConsumerToken    string  `required:"true" split_words:"true"`
	TogglAPIToken    string  `required:"true" split_words:"true"`
	TogglWorkspaceID uint64  `required:"true" split_words:"true"`
	DatabasePath     *string `split_words:"true"`
	Interval         int32   `default:"60"` // Interval in seconds
}

TripplConfig configuration variables for Trippl

func GetConfig

func GetConfig() (*TripplConfig, error)

GetConfig returns config from environment variables

Jump to

Keyboard shortcuts

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