conf

package
v0.0.0-...-ebedddc Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MouseToken      = "mouse_token"
	MouseUser       = "mouse_user"
	MouseParameters = "mouse_parameters"
)

Variables

View Source
var Conf = new(Config)

Functions

func Init

func Init(filepath string) error

func ParseConfig

func ParseConfig(filepath string, cfg interface{}) error

Types

type Config

type Config struct {
	Database SqlConfig `json:"database"`
}

type SqlConfig

type SqlConfig struct {
	Name     string `json:"name" yaml:"name"`
	Host     string `json:"host" yaml:"host"`
	Port     int    `json:"port" yaml:"port"`
	DBName   string `json:"dbName" yaml:"dbName"`
	Username string `json:"username" yaml:"username"`
	Password string `json:"password" yaml:"password"`
}

Jump to

Keyboard shortcuts

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