config

package
v0.0.0-...-0213d94 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path string) error

Types

type HTTPConfig

type HTTPConfig interface {
	Address() string
	ReadTimeout() time.Duration
	ReadHeaderTimeout() time.Duration
	WriteTimeout() time.Duration
	IdleTimeout() time.Duration
}

func NewHTTPConfig

func NewHTTPConfig() (HTTPConfig, error)

type LoggerConfig

type LoggerConfig interface {
	Filename() string
	ServiceName() string
	MaxSize() int
	MaxBackups() int
	MaxAge() int
	Level() string
}

func NewLoggerConfig

func NewLoggerConfig() (LoggerConfig, error)

type PGConfig

type PGConfig interface {
	DSN() string
}

func NewPGConfig

func NewPGConfig() (PGConfig, error)

Jump to

Keyboard shortcuts

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