Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶ added in v1.0.21
func GetAddressWithTag ¶ added in v1.0.21
func GetAddresses ¶ added in v1.0.21
func SetFinder ¶ added in v1.1.1
func SetFinder(finder ServiceFinder)
Types ¶
type ServiceFinder ¶
type ServiceFinder interface { GetAddress(service string) string GetAllAddress(service string) []string GetAddressWithTag(service, tag string) string GetAllAddressWithTag(service, tag string) []string RegisterService(service, address string) error RegisterServiceWithTag(service, address, tag string) error RegisterServiceWithTags(service, address string, tags []string) error Close() }
func GetServiceFinder ¶
func GetServiceFinder() ServiceFinder
Click to show internal directories.
Click to hide internal directories.