Documentation ¶
Index ¶
Constants ¶
View Source
const ( NACOS_ENV_SERVER_ADDR = "serverAddr" NACOS_ENV_PORT = "serverPort" NACOS_ENV_NAMESPACE_ID = "namespace" NACOS_DEFAULT_SERVER_ADDR = "127.0.0.1" NACOS_DEFAULT_PORT = 8848 NACOS_DEFAULT_REGIONID = "cn-hangzhou" )
Variables ¶
This section is empty.
Functions ¶
func NacosNameSpaceId ¶
func NacosNameSpaceId() string
NacosNameSpaceId Get Nacos namespace id from environment variables
func NewCustomNacosLogger ¶
func NewDefaultNacosClient ¶
func NewDefaultNacosClient() (naming_client.INamingClient, error)
NewDefaultNacosClient Create a default Nacos client It can create a client with default config by env variable. See: env.go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.