Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface {
Run(ctx context.Context) (done <-chan struct{}, err error)
Name() string
}
Application will Run until done or error is returned.
func NewHttpServer ¶
func NewHttpServer(router *mux.Router, port int, name string, opts ...HttpOption) Application
func NewPprofHttpServer ¶
func NewPprofHttpServer(port int) Application
func NewPrometheusMetricsHttpServer ¶
func NewPrometheusMetricsHttpServer(port int) Application
func NewSupervisor ¶
func NewSupervisor(opts ...Option) Application
type HttpOption ¶ added in v1.2.0
type HttpOption func(*httpServerConfig)
func WithCors ¶ added in v1.2.0
func WithCors(opts ...handlers.CORSOption) HttpOption
Click to show internal directories.
Click to hide internal directories.