mirror of
https://github.com/coredns/coredns.git
synced 2025-12-07 02:45:11 -05:00
committed by
Chris O'Haver
parent
c8fb66f8cc
commit
6ed88fab74
@@ -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{} {
|
||||
|
||||
Reference in New Issue
Block a user