Add String method to all interfaces
This commit is contained in:
@@ -6,6 +6,7 @@ type Registry interface {
|
||||
GetService(string) ([]*Service, error)
|
||||
ListServices() ([]*Service, error)
|
||||
Watch() (Watcher, error)
|
||||
String() string
|
||||
}
|
||||
|
||||
type Option func(*Options)
|
||||
@@ -37,3 +38,7 @@ func ListServices() ([]*Service, error) {
|
||||
func Watch() (Watcher, error) {
|
||||
return DefaultRegistry.Watch()
|
||||
}
|
||||
|
||||
func String() string {
|
||||
return DefaultRegistry.String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user