Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PathTemplateResult ¶
type PathTemplateResult struct{ Normalized string }
PathTemplateResult wraps the output of TemplatePath/TemplatePathWithConfig: Normalized is the input path with numeric, UUID, and hex segments replaced by the literal placeholder "{id}".
func TemplatePath ¶
func TemplatePath(p string) PathTemplateResult
TemplatePath replaces numeric/uuid/hex path segments with {id}
func TemplatePathWithConfig ¶
func TemplatePathWithConfig(p string, cfg PathTemplatingConfig) PathTemplateResult
TemplatePathWithConfig splits p on "/" and replaces each non-empty segment that is purely numeric, or that matches cfg.UUIDPattern or cfg.HexPattern (whichever are non-nil), with the literal placeholder "{id}". It is the configurable form behind TemplatePath, letting callers supply their own UUID/hex detection patterns (or disable one by passing nil).
type PathTemplatingConfig ¶
PathTemplatingConfig selects the regular expressions TemplatePathWithConfig uses to recognize UUID- and hex-shaped path segments (in addition to the always-checked purely-numeric case). Either field may be nil to skip that detection; TemplatePath uses the package defaults (defaultUUID/defaultHex).
type Result ¶
Result holds the artifacts Compute infers from a batch of captured events: an OpenAPI 3.1 YAML document (OpenAPI), an "x-websocket-events" YAML manifest (WSManifest), a GraphQL SDL fragment (GraphQLSDL), and a JSON gRPC service catalog (GRPCCatalog). Each field is independently deterministic for a given input event set.