config

package module
v0.0.0-...-0ae5b7e Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 3 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 {
	API struct {
		URL      string `yaml:"url"`
		UserID   string `yaml:"userid"`
		Password string `yaml:"password"`
		Insecure bool   `yaml:"insecure"`
	}
}

func ParseConfig

func ParseConfig(filename string) (*Config, error)

type Flags

type Flags struct {
	ConfigFile string // Path to yaml config file
}

func ParseFlags

func ParseFlags() *Flags

Jump to

Keyboard shortcuts

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