naming

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddListener

func AddListener(serviceName string, clusters []string, callback func(services []model.SubscribeService, err error)) error

监听服务

func LogoutService

func LogoutService(ip string, port uint64, serviceName string, clusterName string) (bool, error)

注销服务

func RegisterService

func RegisterService(ip string, port uint64, serviceName string, clusterName string, metadata map[string]string) (bool, error)

注册服务

func SelectAllServices

func SelectAllServices(serviceName string, clusters []string) ([]model.Instance, error)

获取所有注册服务

func SelectServices

func SelectServices(serviceName string, clusters []string, healthy bool) ([]model.Instance, error)

获取注册服务列表

Types

This section is empty.

Jump to

Keyboard shortcuts

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