config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHostname = "api.cast.ai"
)

Variables

This section is empty.

Functions

func GetPath

func GetPath() (string, error)

func Save

func Save(cfg *Config) error

Types

type Config

type Config struct {
	Hostname      string `yaml:"hostname"`
	AccessToken   string `yaml:"access_token"`
	DefaultRegion string `yaml:"default_region"`
	Debug         bool   `yaml:"debug"`
}

func LoadFromEnv

func LoadFromEnv() (*Config, error)

Jump to

Keyboard shortcuts

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