database

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Unlicense Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Driver   string      `mapstructure:"driver"`
	Host     string      `mapstructure:"host"`
	Port     json.Number `mapstructure:"port"`
	Database string      `mapstructure:"database"`
	Username string      `mapstructure:"username"`
	Password string      `mapstructure:"password"`
	SSLMode  string      `mapstructure:"sslmode"`
}

func ReadViper added in v1.1.0

func ReadViper(v *viper.Viper) (c *Config, err error)

func (Config) Dsn

func (c Config) Dsn() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳