parent
c8fb66f8cc
commit
6ed88fab74
13 changed files with 380 additions and 291 deletions
|
@ -20,7 +20,7 @@ type Service struct {
|
|||
}
|
||||
|
||||
// ServiceKey return a string using for the index.
|
||||
func ServiceKey(namespace, name string) string { return namespace + "/" + name }
|
||||
func ServiceKey(name, namespace string) string { return name + "." + namespace }
|
||||
|
||||
// ToService converts an api.Service to a *Service.
|
||||
func ToService(obj interface{}) interface{} {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue