We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7629453 commit 9be3029Copy full SHA for 9be3029
nexus/operation.go
@@ -166,6 +166,11 @@ func (s *Service) Register(operations ...RegisterableOperation) error {
166
return nil
167
}
168
169
+// Operation returns an operation by name or nil if not found.
170
+func (s *Service) Operation(name string) RegisterableOperation {
171
+ return s.operations[name]
172
+}
173
+
174
// A ServiceRegistry registers services and constructs a [Handler] that dispatches operations requests to those services.
175
type ServiceRegistry struct {
176
services map[string]*Service
0 commit comments