naming_grpc

package
v1.99.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionEventListener

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

func NewConnectionEventListener

func NewConnectionEventListener(clientProxy naming_proxy.INamingProxy) *ConnectionEventListener

func (*ConnectionEventListener) CacheInstanceForRedo

func (c *ConnectionEventListener) CacheInstanceForRedo(serviceName, groupName string, instance model.Instance)

func (*ConnectionEventListener) CacheSubscriberForRedo

func (c *ConnectionEventListener) CacheSubscriberForRedo(fullServiceName, clusters string)

func (*ConnectionEventListener) OnConnected

func (c *ConnectionEventListener) OnConnected()

func (*ConnectionEventListener) OnDisConnect

func (c *ConnectionEventListener) OnDisConnect()

func (*ConnectionEventListener) RemoveInstanceForRedo

func (c *ConnectionEventListener) RemoveInstanceForRedo(serviceName, groupName string, instance model.Instance)

func (*ConnectionEventListener) RemoveSubscriberForRedo

func (c *ConnectionEventListener) RemoveSubscriberForRedo(fullServiceName, clusters string)

type NamingGrpcProxy

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

NamingGrpcProxy ...

func NewNamingGrpcProxy

func NewNamingGrpcProxy(clientCfg constant.ClientConfig, nacosServer *nacos_server.NacosServer,
	serviceInfoHolder *naming_cache.ServiceInfoHolder) (*NamingGrpcProxy, error)

NewNamingGrpcProxy create naming grpc proxy

func (*NamingGrpcProxy) CloseClient

func (proxy *NamingGrpcProxy) CloseClient()

func (*NamingGrpcProxy) DeregisterInstance

func (proxy *NamingGrpcProxy) DeregisterInstance(serviceName string, groupName string, instance model.Instance) (bool, error)

DeregisterInstance ...

func (*NamingGrpcProxy) GetServiceList

func (proxy *NamingGrpcProxy) GetServiceList(pageNo uint32, pageSize uint32, groupName string, selector *model.ExpressionSelector) (model.ServiceList, error)

GetServiceList ...

func (*NamingGrpcProxy) QueryInstancesOfService

func (proxy *NamingGrpcProxy) QueryInstancesOfService(serviceName, groupName, clusters string, udpPort int, healthyOnly bool) (*model.Service, error)

QueryInstancesOfService ...

func (*NamingGrpcProxy) RegisterInstance

func (proxy *NamingGrpcProxy) RegisterInstance(serviceName string, groupName string, instance model.Instance) (bool, error)

RegisterInstance ...

func (*NamingGrpcProxy) ServerHealthy

func (proxy *NamingGrpcProxy) ServerHealthy() bool

ServerHealthy ...

func (*NamingGrpcProxy) Subscribe

func (proxy *NamingGrpcProxy) Subscribe(serviceName, groupName string, clusters string) (model.Service, error)

Subscribe ...

func (*NamingGrpcProxy) Unsubscribe

func (proxy *NamingGrpcProxy) Unsubscribe(serviceName, groupName, clusters string) error

Unsubscribe ...

Jump to

Keyboard shortcuts

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