conf

package
v0.0.0-...-bff975f Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf global
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Types

type Config

type Config struct {
	Log        *log.Config
	Mysql      *Mysql
	Redis      *Redis
	SonoServer *SonoServer
	Cron       *Cron
}

Config .

func (*Config) GetCronFreq

func (config *Config) GetCronFreq() string

type Cron

type Cron struct {
	Freq string
}

type Mysql

type Mysql struct {
	UserName string
	Password string
	IpHost   string
	DbName   string
}

type Redis

type Redis struct {
	Addr     string
	Password string
}

type SonoServer

type SonoServer struct {
	Port string
}

Jump to

Keyboard shortcuts

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