package
0.0.0-20240811142457-7e33354fa83f
Repository: https://github.com/hidevopsio/middleware.git
Documentation: pkg.go.dev
# Functions
DefaultAfter is the default func assigned to *Cloudwatch.After.
DefaultBefore is the default func assigned to *Cloudwatch.Before.
GetPutFunc returns the put func based on the context, this can be called to add more metrics after the middleware's handler is executed.
New retruns a new *Cloudwatch metrics middleware call its ServeHTTP to adapt it on the chain.
# Constants
PutMetricContextKey is the context key which the metrics are stored.
# Structs
Cloudwatch is the metrics handler.
# Type aliases
AfterFunc is the func type called after calling the next func in the middleware chain.
BeforeFunc called before handler.