We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0ed6ea + 65115cd commit 9d62234Copy full SHA for 9d62234
โserver/service.go
@@ -59,6 +59,16 @@ func isExportedOrBuiltinType(t reflect.Type) bool {
59
return isExported(t.Name()) || t.PkgPath() == ""
60
}
61
62
+func (s *Server) ListServices() []string {
63
+ s.serviceMapMu.RLock()
64
+ defer s.serviceMapMu.RUnlock()
65
+ var arr []string
66
+ for name := range s.serviceMap {
67
+ arr = append(arr, name)
68
+ }
69
+ return arr
70
+}
71
+
72
// Register publishes in the server the set of methods of the
73
// receiver value that satisfy the following conditions:
74
// - exported method of exported type
0 commit comments