config

package
v0.0.0-...-77603db Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint        string `envconfig:"GOPROXY" required:"true"`
	GHClientID      string `envconfig:"GITHUB_CLIENT_ID" required:"true"`
	GHClientSecret  string `envconfig:"GITHUB_CLIENT_SECRET"`
	GHTickDurMS     int    `envconfig:"GITHUB_API_TICK" default:"1000"`
	AthensTickDurMS int    `envconfig:"ATHENS_TICK" default:"1000"`
	Debug           bool   `envconfig:"DEBUG" default:"false"`
}

Config is the configuration values from the environment

func (*Config) AthensTickDur

func (c *Config) AthensTickDur() time.Duration

func (*Config) GHTickDur

func (c *Config) GHTickDur() time.Duration

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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