configs

package
v0.0.0-...-4a20aba Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Server struct {
		Port string `json:"port"`
	} `json:"server"`
	Database struct {
		Driver   string `json:"driver"`
		Path     string `json:"path"`
		FileName string `json:"fileName"`
		Schema   string `json:"schema"`
	} `json:"database"`
}

func NewConfig

func NewConfig(confPath string) (*Conf, error)

func (*Conf) GetDBDirPath

func (c *Conf) GetDBDirPath() string

func (*Conf) GetDBDriver

func (c *Conf) GetDBDriver() string

func (*Conf) GetDBFilePath

func (c *Conf) GetDBFilePath() string

func (*Conf) GetPort

func (c *Conf) GetPort() string

Jump to

Keyboard shortcuts

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