config

package
v0.0.0-...-4b0558d Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: Apache-2.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 {
	Slack    SlackConfig
	Pomodoro PomodoroConfig
}

func GetAppConfig

func GetAppConfig(configFile string) (Config, error)

type PomodoroConfig

type PomodoroConfig struct {
	WorkTime    int64  `json:"worktime,omitempty"` //time to work in pomodoro (25min default)
	WorkEmoji   string `json:"emoji,omitempty"`    //Emoji to use in status
	WorkMessage string `json:"message,omitempty"`  //Message to set in status
}

type SlackConfig

type SlackConfig struct {
	Token string `json:"token,omitempty"` //OAuth Token
	Host  string `json:"host,omitempty"`  //Host to connect to
	User  string `json:"user"`
}

Jump to

Keyboard shortcuts

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