Documentation ¶
Index ¶
- type Client
- func (i *Client) GetBool(key string) (bool, error)
- func (i *Client) GetFloat64(key string) (float64, error)
- func (i *Client) GetInt(key string) (int, error)
- func (i *Client) GetInt32(key string) (int, error)
- func (i *Client) GetInt64(key string) (int, error)
- func (i *Client) GetJson(key string, v interface{}) error
- func (i *Client) GetString(key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cli agollo.Client, rawConfig *settings.ApolloConfig) *Client
func SetUp ¶
func SetUp(conf *settings.ApolloConfig, logger log.LoggerInterface) (*Client, error)
SetUp 初始化apollo
func (*Client) GetFloat64 ¶
GetFloat64 获取配置
Click to show internal directories.
Click to hide internal directories.