config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfigFile

func SaveConfigFile(filepath string, cfg *Config) error

Types

type Config

type Config struct {
	Endpoint string `yaml:"endpoint"`
	Proxy    string `yaml:"proxy"`
	Login    User   `yaml:"login"`
}

Config ...

func ReadConfigFile

func ReadConfigFile(filepath string) (*Config, error)

ReadConfigFile reads a configuration file and stores it into a Config struct

type User

type User struct {
	User   string `yaml:"user"`
	APIKey string `yaml:"apikey"`
	Secret string `yaml:"secret"`
}

User ...

Jump to

Keyboard shortcuts

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