nacos

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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 NacosAddr

func NacosAddr() string

NacosAddr Get Nacos addr from environment variables

func NacosNameSpaceId

func NacosNameSpaceId() string

NacosNameSpaceId Get Nacos namespace id from environment variables

func NacosPort

func NacosPort() int64

NacosPort Get Nacos port from environment variables

func NewCustomNacosLogger

func NewCustomNacosLogger() logger.Logger

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.

Jump to

Keyboard shortcuts

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