MCPcopy
hub / github.com/danielgtaylor/huma / Group

Struct Group

group.go:57–64  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

55// settings to them. For example, you might create a group for all routes that
56// require authentication.
57type 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
66var _ API = (*Group)(nil) // The Group struct must implement our API interface
67var _ configProvider[Config] = (*Group)(nil) // The Group struct must implement the configProvider[Config] interface in order to provide a way to access its configuration

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected