nacos

package
v0.0.0-...-3a05b22 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamingClient

type NamingClient struct {
	naming_client.INamingClient
}

func GetNamingClient

func GetNamingClient(p *Param) (*NamingClient, error)

func GetNamingClientSingleton

func GetNamingClientSingleton(p *Param) (*NamingClient, error)

func (*NamingClient) DeregisterInstance

func (n *NamingClient) DeregisterInstance(param vo.DeregisterInstanceParam) (bool, error)

func (*NamingClient) GetAllServicesInfo

func (n *NamingClient) GetAllServicesInfo(param vo.GetAllServiceInfoParam) (model.ServiceList, error)

func (*NamingClient) GetService

func (n *NamingClient) GetService(param vo.GetServiceParam) (service model.Service, err error)

func (*NamingClient) RegisterInstance

func (n *NamingClient) RegisterInstance(param vo.RegisterInstanceParam) (bool, error)

func (*NamingClient) SelectAllInstances

func (n *NamingClient) SelectAllInstances(param vo.SelectAllInstancesParam) ([]model.Instance, error)

func (*NamingClient) SelectInstances

func (n *NamingClient) SelectInstances(param vo.SelectInstancesParam) ([]model.Instance, error)

func (*NamingClient) SelectOneHealthyInstance

func (n *NamingClient) SelectOneHealthyInstance(param vo.SelectOneHealthInstanceParam) (*model.Instance, error)

func (*NamingClient) Subscribe

func (n *NamingClient) Subscribe(param *vo.SubscribeParam) error

func (*NamingClient) Unsubscribe

func (n *NamingClient) Unsubscribe(param *vo.SubscribeParam) (err error)

func (*NamingClient) UpdateInstance

func (n *NamingClient) UpdateInstance(param vo.UpdateInstanceParam) (bool, error)

type NamingClientIOCInterface

type NamingClientIOCInterface interface {
	RegisterInstance(param vo.RegisterInstanceParam) (bool, error)
	DeregisterInstance(param vo.DeregisterInstanceParam) (bool, error)
	UpdateInstance(param vo.UpdateInstanceParam) (bool, error)
	GetService(param vo.GetServiceParam) (service model.Service, err error)
	GetAllServicesInfo(param vo.GetAllServiceInfoParam) (model.ServiceList, error)
	SelectAllInstances(param vo.SelectAllInstancesParam) ([]model.Instance, error)
	SelectInstances(param vo.SelectInstancesParam) ([]model.Instance, error)
	SelectOneHealthyInstance(param vo.SelectOneHealthInstanceParam) (*model.Instance, error)
	Subscribe(param *vo.SubscribeParam) error
	Unsubscribe(param *vo.SubscribeParam) (err error)
}

func GetNamingClientIOCInterface

func GetNamingClientIOCInterface(p *Param) (NamingClientIOCInterface, error)

func GetNamingClientIOCInterfaceSingleton

func GetNamingClientIOCInterfaceSingleton(p *Param) (NamingClientIOCInterface, error)

type Param

type Param struct {
	vo.NacosClientParam
}

func (*Param) New

func (c *Param) New(impl *NamingClient) (*NamingClient, error)

type ThisNamingClient

type ThisNamingClient struct {
}

func (*ThisNamingClient) This

Jump to

Keyboard shortcuts

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