v2

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 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 NacosClient

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

func NewClient

func NewClient(config *nacos.Config) (*NacosClient, error)

func (*NacosClient) FetchAllServices

func (c *NacosClient) FetchAllServices() (map[client.NacosService]bool, error)

func (*NacosClient) GetGroups

func (c *NacosClient) GetGroups() []string

func (*NacosClient) GetNamespace

func (c *NacosClient) GetNamespace() string

func (*NacosClient) Subscribe

func (c *NacosClient) Subscribe(groupName string, serviceName string, callback func(services []client.SubscribeService, err error)) error

func (*NacosClient) Unsubscribe

func (c *NacosClient) Unsubscribe(groupName string, serviceName string, callback func(services []client.SubscribeService, err error)) error

Jump to

Keyboard shortcuts

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