config

package
v0.0.0-...-23becbe Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 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 {
	Port                     int           `default:"8080"`
	ApiStrictRouting         bool          `default:"true" split_words:"true"`
	ApiCaseSensitive         bool          `default:"true" split_words:"true"`
	ApiImmutable             bool          `default:"true" split_words:"true"`
	ApiDisableStartupMessage bool          `default:"false" split_words:"true"`
	ApiTimezone              string        `default:"UTC" split_words:"true"`
	ApiEnableStackTrace      bool          `default:"true" split_words:"true"`
	DBHost                   string        `split_words:"true" required:"true"`
	DBPort                   int           `split_words:"true" required:"true"`
	DBName                   string        `split_words:"true" required:"true"`
	DBUser                   string        `split_words:"true" required:"true"`
	DBPass                   string        `split_words:"true" required:"true"`
	DBDisableSSLMode         string        `default:"disable" split_words:"true"`
	DBMaxIdleConns           int           `default:"10" split_words:"true"`
	DBMaxOpenConns           int           `default:"100" split_words:"true"`
	DBMaxLifetime            time.Duration `default:"1h" split_words:"true"`
	SupervisorDelayMonitor   int           `default:"5" split_words:"true"`
}

type Parser

type Parser interface {
	Parse() (*Config, error)
}

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func New

func New(parser Parser) *Processor

func (*Processor) Parse

func (p *Processor) Parse() (*Config, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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