client

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNacosClient

func RegisterNacosClient(c NacosConfigClient)

func RegisterNacosClientIfAbsent

func RegisterNacosClientIfAbsent(c NacosConfigClient)

Types

type NacosConfigClient

type NacosConfigClient interface {
	GetConfig(param NacosConfigParam) (string, error)
	PublishConfig(param NacosConfigParam) (bool, error)
	DeleteConfig(param NacosConfigParam) (bool, error)
	ListenConfig(param NacosConfigParam) error
	CancelListenConfig(param NacosConfigParam) error
}

func GetDefaultNacosClient

func GetDefaultNacosClient() NacosConfigClient

type NacosConfigParam

type NacosConfigParam struct {
	DynamicConfiguration *nacosv1.DynamicConfiguration
	DataId               string
	Group                string
	Content              string
	OnChange             func(namespace, group, dataId, data string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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