settings

package
v0.0.0-...-d07e03a Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 1 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 {
	RedisURL     string `env:"REDIS_URL"                   env-required:"true"`
	Host         string `env:"REDMINE_HOST"                env-required:"true"`
	AuthToken    string `env:"REDMINE_API_KEY"             env-required:"true"`
	RtbStatus    string `env:"STAMP_READY_TO_BUILD_STATUS" env-required:"true"`
	BuildFieldID int64  `env:"STAMP_BUILD_CUSTOM_FIELD"    env-required:"true"`
	DoneStatus   string `env:"STAMP_DONE_STATUS"           env-required:"true"`
	Port         string `env:"PORT"                                            env-default:"8080"`
	SentryDSN    string `env:"SENTRY_DSN"                  env-required:"true"`
}

Config struct combine app settings

func Current

func Current() (*Config, error)

Jump to

Keyboard shortcuts

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