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 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 TracingIgnoreFn(fullMethodName string) bool
- func TracingWrapper(h http.Handler) http.Handler
- type CustomResponseWriter
- type GatewayCarrier
- type HttpCacheBody
Constants ¶
View Source
const PatternHeader = "pattern"
Variables ¶
View Source
var Etag string
View Source
var MetricsIgnoreFn = TracingIgnoreFn
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 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 TracingIgnoreFn ¶
func TracingWrapper ¶
TracingWrapper [W3C Tracing Headers](https://www.w3.org/TR/trace-context/)
Types ¶
type CustomResponseWriter ¶
type CustomResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
type GatewayCarrier ¶
func (GatewayCarrier) Get ¶
func (hc GatewayCarrier) Get(key string) string
func (GatewayCarrier) Keys ¶
func (hc GatewayCarrier) Keys() []string
func (GatewayCarrier) Set ¶
func (hc GatewayCarrier) Set(key string, value string)
type HttpCacheBody ¶
type HttpCacheBody struct {
Etag string
}
Click to show internal directories.
Click to hide internal directories.