config

package
v0.0.0-...-959eceb Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugMode bool

DebugMode is accessible from outside the package to make it easier to check.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID     string `yaml:"client_id"`
	ClientSecret string `yaml:"client_secret"`
	AppPort      int    `yaml:"app_port"`
	OAuth2Config *oauth2.Config
}

Config represents what we pull in from the 'xero:' key in config.yml.

func New

func New(filePath string) *Config

New - returns an instance of Config from the given filePath - If empty, will default to 'config.yml'.

func (*Config) Print

func (c *Config) Print()

Print outputs the loaded client struct.

Jump to

Keyboard shortcuts

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