adapter

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseValues

type DatabaseValues struct {
	DBHost           string        `toml:"host"`
	DBPort           int           `toml:"port"`
	DBName           string        `toml:"name"`
	DBUser           string        `toml:"user"`
	DBPass           string        `toml:"pass"`
	DBDisableSSLMode string        `toml:"disable_ssl_mode"`
	DBMaxIdleConns   int           `toml:"max_idle_conns"`
	DBMaxOpenConns   int           `toml:"max_open_conns"`
	DBMaxLifetime    time.Duration `toml:"max_lifetime"`
}

type EnvVarParser

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

func NewEnvVarParser

func NewEnvVarParser(prefix string) *EnvVarParser

func (*EnvVarParser) Parse

func (ev *EnvVarParser) Parse() (*config.Config, error)

type FiberValues

type FiberValues struct {
	ApiStrictRouting         bool   `toml:"string_routing"`
	ApiCaseSensitive         bool   `toml:"case_sensitive"`
	ApiImmutable             bool   `toml:"immutable"`
	ApiDisableStartupMessage bool   `toml:"disable_startup_msg"`
	ApiTimezone              string `toml:"timezone"`
	ApiEnableStackTrace      bool   `toml:"enable_stack_trace"`
}

type SupervisorValues

type SupervisorValues struct {
	DelayMonitor int `toml:"delay_monitor"`
}

type TomlParser

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

func NewTomlParser

func NewTomlParser(path string) *TomlParser

func (*TomlParser) Parse

func (tp *TomlParser) Parse() (*config.Config, error)

type TomlValues

type TomlValues struct {
	Port       int
	Supervisor SupervisorValues
	Fiber      FiberValues
	Database   DatabaseValues
}

Jump to

Keyboard shortcuts

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