Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeprecationMiddleware ¶ added in v0.3.15
func DeprecationMiddleware(cfg DeprecationConfig) func(http.Handler) http.Handler
DeprecationMiddleware injects RFC 8594 deprecation headers (Deprecation, Sunset, Link) on responses to alpha (v1alpha3) API requests. Requests to any other path pass through unchanged.
Types ¶
type DeprecationConfig ¶ added in v0.3.15
type DeprecationConfig struct {
// SunsetDate is the date after which the deprecated alpha API may be removed.
SunsetDate time.Time
}
DeprecationConfig configures the deprecation middleware.
Click to show internal directories.
Click to hide internal directories.