Documentation ¶
Index ¶
- Variables
- func AddToHeaderAllowList(allowList ...string)
- func DefaultErrorHandler(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, ...)
- func DefaultHTTPServer(handler http.Handler) *http.Server
- func DefaultHeaderWarp(key string) (string, bool)
- func DefaultRoutingErrorHandler(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, ...)
- func GRPCGatewayListener(mux cmux.CMux) net.Listener
- func GRPCServerListener(mux cmux.CMux) net.Listener
- func HTTPServer(handler http.Handler, warps ...func(http.Handler) http.Handler) *http.Server
- func NewMixedPortServeMux(ctx context.Context, endpoint string, registers ...Register) (*runtime.ServeMux, error)
- func WithLogger(handler http.Handler) http.Handler
- func WithOpenTelemetry(handler http.Handler) http.Handler
- func WithResponseWriter(handler http.Handler) http.Handler
- type Register
- type ResponseWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultServeMuxOption = []runtime.ServeMuxOption{ runtime.WithErrorHandler(DefaultErrorHandler), runtime.WithRoutingErrorHandler(DefaultRoutingErrorHandler), runtime.WithIncomingHeaderMatcher(DefaultHeaderWarp), runtime.WithMarshalerOption("application/jsonpb", &runtime.JSONPb{ MarshalOptions: protojson.MarshalOptions{ EmitUnpopulated: true, UseProtoNames: true, }, UnmarshalOptions: protojson.UnmarshalOptions{ DiscardUnknown: false, }, }), }
Functions ¶
func AddToHeaderAllowList ¶
func AddToHeaderAllowList(allowList ...string)
func DefaultErrorHandler ¶
func DefaultHeaderWarp ¶
func HTTPServer ¶
func NewMixedPortServeMux ¶
Types ¶
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.