server

package
v0.0.0-...-25732c4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	// contains filtered or unexported fields
}

func HTTPWithServer

func HTTPWithServer(cfg *config.Cfg, srv *http.Server) (*HTTP, error)

func NewHTTP

func NewHTTP(cfg *config.Cfg, tollStationHandler http.Handler) (*HTTP, error)

func (*HTTP) Shutdown

func (h *HTTP) Shutdown(ctx context.Context) error

func (*HTTP) Start

func (h *HTTP) Start(_ context.Context, errorChan chan error)

type TollStationHandler

type TollStationHandler struct {
	// contains filtered or unexported fields
}

func NewTollStationHandler

func NewTollStationHandler(logger *zap.Logger, tm *telemetry.Telemetry) *TollStationHandler

func (*TollStationHandler) ServeHTTP

func (h *TollStationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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