Help us shape the future of Go! Take the 2026 Go Developer Survey

nacos

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Username    string
	Password    string
	NamespaceID string
	ContextPath string
	LogDir      string
	LogLevel    string // debug, info, warn, error
	CacheDir    string
	Timeout     time.Duration
	Watch       bool
	Endpoints   []string
	Files       []*File
}

type File

type File struct {
	DataID  string
	Group   string
	Content string
}

type NacosProvider

type NacosProvider struct {
	OnChanged provider.ChangeFunc
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(opts Options) (*NacosProvider, error)

func (*NacosProvider) ConfigOpen

func (p *NacosProvider) ConfigOpen() ([]*File, error)

func (*NacosProvider) SetOnChanged

func (p *NacosProvider) SetOnChanged(changeFunc provider.ChangeFunc)

func (*NacosProvider) Watch

func (p *NacosProvider) Watch() error

type Options

type Options struct {
	Config Config
}

Jump to

Keyboard shortcuts

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