config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapConfig

type BootstrapConfig struct {
	NacosConfig NacosConfig
}

type ListenConfig

type ListenConfig func(data string)

type NacosClientConfig

type NacosClientConfig struct {
	NamespaceId         string
	TimeoutMs           uint64
	NotLoadCacheAtStart bool
	LogDir              string
	CacheDir            string
	LogLevel            string
}

type NacosConfig

type NacosConfig struct {
	ServerConfigs []NacosServerConfig
	ClientConfig  NacosClientConfig
	DataId        string
	Group         string
}

func (*NacosConfig) Discovery

func (n *NacosConfig) Discovery(c *zrpc.RpcServerConf)

func (*NacosConfig) DiscoveryRest

func (n *NacosConfig) DiscoveryRest(c *rest.RestConf)

func (*NacosConfig) GetAllGroupName

func (n *NacosConfig) GetAllGroupName() (nacosGroupList commonVo.NacosGroupList, err error)

GetAllGroupName Get all GroupName

func (*NacosConfig) GetAllServicesInfo

func (n *NacosConfig) GetAllServicesInfo() (commonVo.NacosServiceList, error)

GetAllServicesInfo Get all Services

func (*NacosConfig) InitConfig

func (n *NacosConfig) InitConfig(listenConfigCallback ListenConfig) string

type NacosServer

type NacosServer struct {
	sync.RWMutex

	ServerSrcChangeSignal chan struct{}
	// contains filtered or unexported fields
}

type NacosServerConfig

type NacosServerConfig struct {
	IpAddr string
	Port   uint64
}

type NamingClient

type NamingClient struct {
	nacos_client.INacosClient
	// contains filtered or unexported fields
}

NamingClient ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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