nacos

package
v0.0.0-...-40c8909 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NacosConfig

type NacosConfig struct {
	IP          string
	Port        uint64 //8848
	UserName    string
	Password    string
	NameSpaceId string
	Group       string
	DataId      string
	RuntimeDir  string //runtime
	LogLevel    string //debug
	Timeout     int64  //ms
}

type NacosReader

type NacosReader struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *NacosConfig) *NacosReader

func (*NacosReader) AddListener

func (n *NacosReader) AddListener(listener func(content string) error) error

func (*NacosReader) GetConfig

func (n *NacosReader) GetConfig() (string, error)

Jump to

Keyboard shortcuts

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