config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyEnv = errors.New("env is needed, but empty")

ErrEmptyEnv represents the required environment variable don't exist.

Functions

This section is empty.

Types

type Config

type Config struct {
	Interval           time.Duration
	GitHubUserName     string
	ExcludeRepoPattern *regexp.Regexp
	ExcludeEvent       []string

	// For Twitter
	ConsumerKey       string
	ConsumerSecret    string
	AccessToken       string
	AccessTokenSecret string
}

Config is configuration for simulator.

func NewConfig

func NewConfig() (*Config, error)

NewConfig gets some settings from environment variables.

Jump to

Keyboard shortcuts

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