Documentation ¶
Index ¶
- type ApolloConfig
- 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) (int32, error)
- func (i *Client) GetInt64(key string) (int64, error)
- func (i *Client) GetJson(key string, v interface{}) error
- func (i *Client) GetString(key string) (string, error)
- func (i *Client) GetStringSlice(key string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApolloConfig ¶ added in v1.3.2
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cli agollo.Client, rawConfig *ApolloConfig) *Client
func SetUp ¶
func SetUp(conf *ApolloConfig, logger log.LoggerInterface) (*Client, error)
SetUp 初始化apollo.
func (*Client) GetFloat64 ¶
GetFloat64 获取配置.
Click to show internal directories.
Click to hide internal directories.