server

package
v0.0.0-...-a68b7af Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPRouter

func NewHTTPRouter(params RouteParams) *chi.Mux

func Serve

func Serve()

func StartHttpServer

func StartHttpServer(lifecycle fx.Lifecycle, router *chi.Mux)

Types

type HTTPHandler

type HTTPHandler interface {
	Method() string
	Pattern() string

	http.Handler
}

type RouteParams

type RouteParams struct {
	fx.In
	Handlers []HTTPHandler `group:"handlers"`
}

Jump to

Keyboard shortcuts

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