config

package
v0.0.0-...-27d1280 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 4 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 {
	AccessToken  string   `envconfig:"github_token"`
	Organisation string   `envconfig:"organisation" required:"true"`
	Languages    []string `envconfig:"languages" required:"true"`
	OnlyPrivate  bool     `envconfig:"only_private"`
	BackupDir    string   `envconfig:"backup_dir" required:"true"`
}

func NewConfig

func NewConfig() (*Config, error)

NewConfig reads the environment configs into the Config struct

Jump to

Keyboard shortcuts

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