Documentation ¶
Overview ¶
*------------------------------------------------------------**
- @filename config/config.go
- @author jinycoo - caojingyin@jinycoo.com
- @version 1.0.0
- @date 2019/11/5 11:41
- @desc config - summary **------------------------------------------------------------*
*------------------------------------------------------------**
- @filename config/
- @author jinycoo
- @version 1.0.0
- @date 2019-08-15 13:20
- @desc config - **------------------------------------------------------------*
Index ¶
- Constants
- func TomlCfgInit(cfgPath string, v interface{}) (err error)
- type Client
- func (c *Client) ConfIng(name string) (v *Value, err error)
- func (c *Client) Configs() (confs []*Value, ok bool)
- func (c *Client) Create(name, content, operator, mark string) (err error)
- func (c *Client) Event() <-chan string
- func (c *Client) Path() string
- func (c *Client) SetCustomize(value string)
- func (c *Client) Toml() (cf string, ok bool)
- func (c *Client) Toml2() (cf string, ok bool)
- func (c *Client) Update(ID int64, content, operator, mark string) (err error)
- func (c *Client) Value(key string) (cf string, ok bool)
- func (c *Client) Value2(key string) (cf string, ok bool)
- func (c *Client) Watch(filename ...string)
- func (c *Client) WatchAll()
- type Namespace
- type StringVars
- type Value
Constants ¶
View Source
const DefConfigFile = "app.toml"
Variables ¶
This section is empty.
Functions ¶
func TomlCfgInit ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is config client.
func (*Client) SetCustomize ¶
SetCustomize set customize value.
type StringVars ¶
type StringVars []string
StringVars []string implement flag.Value
func (StringVars) String ¶
func (s StringVars) String() string
Directories ¶
Path | Synopsis |
---|---|
*------------------------------------------------------------** * @filename dsn/ * @author jinycoo * @version 1.0.0 * @date 2019-07-25 13:38 * @desc dsn - **------------------------------------------------------------* *------------------------------------------------------------** * @filename dsn/ * @author jinycoo * @version 1.0.0 * @date 2019-07-29 19:02 * @desc dsn - **------------------------------------------------------------*
|
*------------------------------------------------------------** * @filename dsn/ * @author jinycoo * @version 1.0.0 * @date 2019-07-25 13:38 * @desc dsn - **------------------------------------------------------------* *------------------------------------------------------------** * @filename dsn/ * @author jinycoo * @version 1.0.0 * @date 2019-07-29 19:02 * @desc dsn - **------------------------------------------------------------* |
*------------------------------------------------------------** * @filename env/env.go * @author jinycoo * @version 1.0.0 * @date 2019-07-15 13:14 * @desc env - environment params **------------------------------------------------------------*
|
*------------------------------------------------------------** * @filename env/env.go * @author jinycoo * @version 1.0.0 * @date 2019-07-15 13:14 * @desc env - environment params **------------------------------------------------------------* |
Click to show internal directories.
Click to hide internal directories.