config

package
v0.0.0-...-13e9ea1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbDns

func DbDns(conf Config) string

func DbInit

func DbInit(conf Config) *pgxpool.Pool

Types

type Config

type Config struct {
	Logger   LoggerConfig
	Database DatabaseConfig
}

func NewConfig

func NewConfig() Config

type Database

type Database struct {
	Pool   *pgxpool.Pool
	Logger logger.Logger
	Dns    string
}

func NewDatabase

func NewDatabase(conf Config) Database

type DatabaseConfig

type DatabaseConfig struct {
	Driver   string
	Password string
	User     string
	Port     string
	Database string
}

func DatabaseConfigInit

func DatabaseConfigInit() DatabaseConfig

type LoggerConfig

type LoggerConfig struct {
	Config zap.Config
}

func LoggerConfigInit

func LoggerConfigInit() LoggerConfig

Jump to

Keyboard shortcuts

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