store

package
v0.9.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 0 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 {
	Host                string `mapstructure:"host" default:"localhost"`
	User                string `mapstructure:"user" default:"postgres"`
	Password            string `mapstructure:"password" default:""`
	Name                string `mapstructure:"name" default:"postgres"`
	Port                string `mapstructure:"port" default:"5432"`
	SslMode             string `mapstructure:"sslmode" default:"disable"`
	LogLevel            string `mapstructure:"log_level" default:"info"`
	ConnMaxIdleTimeInMs int    `mapstructure:"conn_max_idle_time_in_ms"`
	ConnMaxLifetimeInMs int    `mapstructure:"conn_max_lifetime_in_ms"`
	MaxIdleConns        int    `mapstructure:"max_idle_conns"`
	MaxOpenConns        int    `mapstructure:"max_open_conns"`
}

Config for database connection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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