webserver

package
v0.0.0-...-4d7482c Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFunc

type HandlerFunc struct {
	Method  string
	Handler http.HandlerFunc
}

type WebServer

type WebServer struct {
	Router        chi.Router
	Handlers      []HandlerFunc
	WebServerPort string
	Server        *http.Server
}

func NewWebServer

func NewWebServer(serverPort string) *WebServer

func (*WebServer) MountMiddlewares

func (s *WebServer) MountMiddlewares()

func (*WebServer) Shutdown

func (s *WebServer) Shutdown(ctx context.Context) error

func (*WebServer) Start

func (s *WebServer) Start() error

Jump to

Keyboard shortcuts

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