Documentation ¶
Index ¶
- Variables
- func GetConf(path ...string) string
- func InitClient(filename string, ServerID string)
- func ReadFile(fpath string, cur interface{})
- func Server(c *Configurator)
- func WriteFile(fpath string, cur interface{})
- type Api_toml
- type Api_yaml
- type Basic
- type Configurator
- type Option
- type Options
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SConf *Configurator OldConf MPB.Config CurRouter *MPB.Server CurGame *MPB.Server CurGate *MPB.Server )
View Source
var (
Conf = make(map[string]*Configurator)
)
Functions ¶
func InitClient ¶ added in v1.1.0
func Server ¶
func Server(c *Configurator)
Types ¶
type Configurator ¶
type Configurator struct { sync.RWMutex Conf config.Config Update func(*Configurator) Opt *Options ServerName string MyConf MPB.Config // contains filtered or unexported fields }
configurator 配置器
func New ¶
func New(name string, source source.Source, update func(*Configurator)) *Configurator
Click to show internal directories.
Click to hide internal directories.