webserver

package
v0.0.0-...-dbb83f0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerProps

type HandlerProps struct {
	Method string
	Path   string
	Func   http.HandlerFunc
}

type WebServer

type WebServer struct {
	WebServerPort      string
	Router             chi.Router
	Handlers           []HandlerProps
	InternalMiddleware internalMw.Middleware
}

func NewWebServer

func NewWebServer(serverPort string) *WebServer

func (*WebServer) AddHandler

func (s *WebServer) AddHandler(method, path string, handler http.HandlerFunc)

func (*WebServer) Start

func (s *WebServer) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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