Documentation
¶
Index ¶
- func BasicHandler(handler func(request *http.Request) CanHTTPWrite, l *zapctx.Logger) http.Handler
- func BasicServerRun(logger *zapctx.Logger, server *http.Server, ...) error
- func HealthHandler(z *zapctx.Logger, tracer gotracing.Tracing) http.Handler
- func LogMiddleware(logger *zapctx.Logger, filterFunc func(req *http.Request) bool) func(handler http.Handler) http.Handler
- func MuxMiddleware() func(handler http.Handler) http.Handler
- func NotFoundHandler(logger *zapctx.Logger) http.Handler
- type BasicResponse
- type CanHTTPWrite
- type DebugServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicHandler ¶
func BasicServerRun ¶
func LogMiddleware ¶
Types ¶
type BasicResponse ¶
func (*BasicResponse) HTTPWrite ¶
func (g *BasicResponse) HTTPWrite(ctx context.Context, w http.ResponseWriter, l *zapctx.Logger)
type CanHTTPWrite ¶
type DebugServer ¶ added in v0.0.2
type DebugServer struct { http.Server ListenAddr string Logger *zapctx.Logger // contains filtered or unexported fields }
func (*DebugServer) Close ¶ added in v0.0.2
func (d *DebugServer) Close() error
func (*DebugServer) Setup ¶ added in v0.0.2
func (d *DebugServer) Setup() error
func (*DebugServer) Start ¶ added in v0.0.2
func (d *DebugServer) Start() error
Click to show internal directories.
Click to hide internal directories.