Group is a collection of routes that share a common prefix and set of operation modifiers, middlewares, and transformers. This is useful for grouping related routes together and applying common settings to them. For example, you might create a group for all routes that require authentication.
| 55 | // settings to them. For example, you might create a group for all routes that |
| 56 | // require authentication. |
| 57 | type Group struct { |
| 58 | API |
| 59 | prefixes []string |
| 60 | adapter Adapter |
| 61 | modifiers []func(o *Operation, next func(*Operation)) |
| 62 | middlewares Middlewares |
| 63 | transformers []Transformer |
| 64 | } |
| 65 | |
| 66 | var _ API = (*Group)(nil) // The Group struct must implement our API interface |
| 67 | var _ configProvider[Config] = (*Group)(nil) // The Group struct must implement the configProvider[Config] interface in order to provide a way to access its configuration |
nothing calls this directly
no outgoing calls
no test coverage detected