config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig added in v0.2.0

func SaveConfig(config *Config) error

SaveConfig function is used to save configuration file

Types

type Config

type Config struct {
	Endpoint  string      `json:"endpoint"`
	Insecure  bool        `json:"insecure"`
	Auth      auth.Config `json:"auth"`
	Libraries []string    `json:"libraries"`
	Resources []string    `json:"resources"`
}

Config is the default configuration for the app

func LoadConfig

func LoadConfig(locations ...string) (*Config, error)

LoadConfig function is used to load configuration from file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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