apollo

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) GetBool

func (i *Client) GetBool(key string) (bool, error)

GetBool 获取配置

func (*Client) GetFloat64

func (i *Client) GetFloat64(key string) (float64, error)

GetFloat64 获取配置

func (*Client) GetInt

func (i *Client) GetInt(key string) (int, error)

GetInt 获取配置

func (*Client) GetInt32

func (i *Client) GetInt32(key string) (int, error)

GetInt32 获取配置

func (*Client) GetInt64

func (i *Client) GetInt64(key string) (int, error)

GetInt64 获取配置

func (*Client) GetJson

func (i *Client) GetJson(key string, v interface{}) error

GetJson 获取配置

func (*Client) GetString

func (i *Client) GetString(key string) (string, error)

GetString 获取配置

Jump to

Keyboard shortcuts

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