Documentation ¶
Index ¶
- Constants
- Variables
- func AllowCORS(h http.Handler) http.Handler
- func DeletePatternHeader(h http.Handler) http.Handler
- func GetPatternHeader(w http.ResponseWriter) string
- func HttpCache(h http.Handler) http.Handler
- func MetricsServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (resp any, err error)
- func MetricsStreamServerInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func Recovery(h http.Handler) http.Handler
- func ResponseMetrics(h http.Handler) http.Handler
- func RouteLogger(h http.Handler) http.Handler
- func SetPatternHeader(w http.ResponseWriter, val string)
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func TraceUnaryClientInterceptor(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, ...) error
- func TraceUnaryServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (resp any, err error)
- func TracingWrapper(h http.Handler) http.Handler
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
- type CustomResponseWriter
- type Validator
Constants ¶
View Source
const PatternHeader = "pattern"
Variables ¶
View Source
var Etag string
Functions ¶
func GetPatternHeader ¶
func GetPatternHeader(w http.ResponseWriter) string
func MetricsServerInterceptor ¶
func MetricsServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp any, err error)
func MetricsStreamServerInterceptor ¶
func MetricsStreamServerInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
func SetPatternHeader ¶
func SetPatternHeader(w http.ResponseWriter, val string)
func StreamServerInterceptor ¶ added in v4.19.7
func StreamServerInterceptor() grpc.StreamServerInterceptor
func TraceUnaryClientInterceptor ¶
func TraceUnaryClientInterceptor(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
func TraceUnaryServerInterceptor ¶
func TraceUnaryServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp any, err error)
func TracingWrapper ¶
TracingWrapper [W3C Tracing Headers](https://www.w3.org/TR/trace-context/)
func UnaryServerInterceptor ¶ added in v4.19.7
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
Types ¶
type CustomResponseWriter ¶
type CustomResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.