config

package
v0.0.0-...-71d5ba4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Name    string
	Domain  string
	Package string
	Service map[string]*Service
	RpcPort int
	RpcTo   []string
	Logs    map[string]*log.Config
	Db      map[string]*DBConfig
	Config  map[string]interface{}
}

type BingoConfig

type BingoConfig struct {
	Apps   []*AppConfig
	Config *GlobalConfig
}

func (*BingoConfig) FindApp

func (c *BingoConfig) FindApp(name string) *AppConfig

func (*BingoConfig) FindAppsByPackage

func (c *BingoConfig) FindAppsByPackage(pkg string) []*AppConfig

type DBConfig

type DBConfig struct {
	Type     string
	Addr     string
	User     string
	Pwd      string
	Db       string
	TbPrefix string
}

type GlobalConfig

type GlobalConfig struct {
	EnableBingoLog bool
	BingoLogLevel  log.Level
}

type JsParser

type JsParser struct {
}

func (*JsParser) Parse

func (p *JsParser) Parse(configPath string) *BingoConfig

解析配置文件

type Parser

type Parser interface {
	Parse(filePath string) *BingoConfig
}

type Service

type Service struct {
	Net   string
	Port  int
	Codec string
}

Jump to

Keyboard shortcuts

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