server

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Port = "8080"

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

func NewHTTPServer

func NewHTTPServer(lc fx.Lifecycle, mux *http.ServeMux, log logger.Logger) *http.Server

func NewServeMux

func NewServeMux(p ServerMuxParams) *http.ServeMux

Types

type ServerMuxParams

type ServerMuxParams struct {
	fx.In

	Handler      *exporter.MetricsHandler
	Registry     *prometheus.Registry
	Instrumenter metrics.HTTPHandlerInstrumenter
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL