# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
ListenAndServe serves an http server over TCP.
ListenAndServePprof starts a pprof server.
New creates a new http server
Example:
srv, _ := server.New(&server.Config{ Addr: ":8080", Handler: http.DefaultServeMux, Options: []server.Option{ server.WithLogging("my-server"), server.WithMetrics("my-server"), server.WithRecovery(), server.WithTracing("opentracing-server:6831", "my-server"), } })
srv.ListenAndServe(context.Background()).
# Interfaces
Option is the interface for all server options defined in this package.