config

package
v0.0.0-...-62e08e0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 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 {
	ApiKey    string `yaml:"apiKey"`
	ApiUrl    string `yaml:"apiUrl"`
	User      string `yaml:"user"`
	Templates struct {
		Active   string `yaml:"active"`
		Inactive string `yaml:"inactive"`
		Selected string `yaml:"selected"`
		Details  string `yaml:"details"`
	} `yaml:"templates"`
}

Config represents the structure of the configuration file.

func (*Config) LoadConfig

func (c *Config) LoadConfig(file string) error

LoadConfig reads the configuration file and unmarshal the data into the config struct.

Jump to

Keyboard shortcuts

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