conf

package
v0.0.0-...-0588a84 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBConnection

func NewDBConnection(conf *Config) *gorm.DB

NewDBConnection return *gorm.DB.

Types

type Config

type Config struct {
	// TODO: network setting.
	// Server struct {
	// 	Port int
	// 	Mock bool
	// }
	Database struct {
		Host     string
		Port     string
		User     string
		Password string
		Database string
	}
}

Config is application config.

func NewConfig

func NewConfig() *Config

NewConfig return *Config.

Jump to

Keyboard shortcuts

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