server

package
v0.0.0-...-0ed838c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 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 RouterParams) *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 RouterParams

type RouterParams 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