package
Version:
v0.0.0-...-e0f7ac1
Opens a new window with list of versions in this module.
Published: Jan 29, 2020
License: GPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func InitializeConfig(target interface{})
func InitializeLogging(logLevel, logFormat string)
InitializeLogging sets logrus log level and formatting style.
type GitHubConfig struct {
GithubAccessTokens []string `envconfig:"GITHUB_ACCESS_TOKENS" required:"true"`
}
type GoogleCloudConfig struct {
GoogleProjectID string `envconfig:"GCLOUD_PROJECT_ID" required:"true"`
GooglePubSubTopicRepository string `envconfig:"GCLOUD_PUBSUB_TOPIC_REPOSITORY" required:"true"`
}
type HTTPConfig struct {
HTTPPort int `envconfig:"HTTP_PORT" default:"8080"`
HTTPBind string `envconfig:"HTTP_BIND" default:"0.0.0.0"`
AllowedOrigins []string `envconfig:"ALLOWED_ORIGINS" default:"*"`
}
type LogConfig struct {
LogLevel string `envconfig:"LOG_LEVEL" default:"info"`
LogFormat string `envconfig:"LOG_FORMAT" default:"json"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.