config

package
v0.0.0-...-1dfef78 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

type DBConfig struct {
	Engine  string `json:"engine"`
	Name    string `json:"name"`
	Host    string `json:"host"`
	Port    uint   `json:"port"`
	User    string `json:"user"`
	Pass    string `json:"pass"`
	Refresh bool   `json:"refresh"`
	LogMode bool   `json:"log_mode"`
}

type GSPConfig

type GSPConfig struct {
	Port     uint      `json:"port"`
	Pop      bool      `json:"pop"`
	DBConfig *DBConfig `json:"db_config"`
}

func GetConfig

func GetConfig() (*GSPConfig, error)

func (*GSPConfig) GetAddress

func (c *GSPConfig) GetAddress() string

func (*GSPConfig) ToString

func (c *GSPConfig) ToString() string

Jump to

Keyboard shortcuts

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