config

package
v0.0.0-...-5bcc8b5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 2 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 {
	DebugMode                bool          `split_words:"true" default:"false"`
	UpstreamBaseURL          string        `split_words:"true" required:"true"`
	CacheEviction            time.Duration `split_words:"true" default:"23h"`
	S3Bucket                 string        `split_words:"true" required:"true"`
	S3UseAccelerate          bool          `split_words:"true" default:"false"`
	S3PresignEnabled         bool          `split_words:"true" default:"true"`
	S3PresignExpiration      time.Duration `split_words:"true" default:"24h"`
	EnablePrometheusExporter bool          `split_words:"true" default:"false"`
}

func GetConfig

func GetConfig() (*Config, error)

Jump to

Keyboard shortcuts

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