Documentation ¶
Index ¶
- type NamingClient
- func (n *NamingClient) DeregisterInstance(param vo.DeregisterInstanceParam) (bool, error)
- func (n *NamingClient) GetAllServicesInfo(param vo.GetAllServiceInfoParam) (model.ServiceList, error)
- func (n *NamingClient) GetService(param vo.GetServiceParam) (service model.Service, err error)
- func (n *NamingClient) RegisterInstance(param vo.RegisterInstanceParam) (bool, error)
- func (n *NamingClient) SelectAllInstances(param vo.SelectAllInstancesParam) ([]model.Instance, error)
- func (n *NamingClient) SelectInstances(param vo.SelectInstancesParam) ([]model.Instance, error)
- func (n *NamingClient) SelectOneHealthyInstance(param vo.SelectOneHealthInstanceParam) (*model.Instance, error)
- func (n *NamingClient) Subscribe(param *vo.SubscribeParam) error
- func (n *NamingClient) Unsubscribe(param *vo.SubscribeParam) (err error)
- func (n *NamingClient) UpdateInstance(param vo.UpdateInstanceParam) (bool, error)
- type NamingClientIOCInterface
- type Param
- type ThisNamingClient
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 ¶
func (t *ThisNamingClient) This() NamingClientIOCInterface
Click to show internal directories.
Click to hide internal directories.