package
1.12.1
Repository: https://github.com/contiamo/go-base.git
Documentation: pkg.go.dev

# 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()).

# Structs

Config contains the http servers config options.

# Interfaces

Option is the interface for all server options defined in this package.