configs

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix = ""
)

Package constants definition.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	DB MySQL
}

App represents all configuration of qr-service application.

var AppConfig App

AppConfig is addition config for gami-service

func New

func New() (*App, error)

New returns a new instance of playground configuration.

type MySQL

type MySQL struct {
	Username string `default:"root" envconfig:"MYSQL_USER"`
	Password string `default:"root" envconfig:"MYSQL_PASS"`
	Host     string `default:"127.0.0.1" envconfig:"MYSQL_HOST"`
	Port     int    `default:"3306" envconfig:"MYSQL_PORT"`
	Database string `default:"evoucher_service" envconfig:"MYSQL_DB"`
}

MySQL represents configuration of MySQL database.

func (*MySQL) ConnectionString

func (c *MySQL) ConnectionString() string

ConnectionString returns connection string of MySQL database.

Jump to

Keyboard shortcuts

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