webserver

package
v0.0.0-...-51e95d8 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebServer

type WebServer struct {
	Router         chi.Router
	GetHandlers    map[string]http.HandlerFunc
	PostHandlers   map[string]http.HandlerFunc
	DeleteHandlers map[string]http.HandlerFunc
	GroupRoutes    []func(r chi.Router)
	WebServerPort  string
}

func NewWebServer

func NewWebServer(webServerPort string) *WebServer

func (*WebServer) AddDeleteHandler

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

func (*WebServer) AddGetHandler

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

func (*WebServer) AddGroupRoute

func (s *WebServer) AddGroupRoute(route func(r chi.Router))

func (*WebServer) AddPostHandler

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

func (*WebServer) Start

func (s *WebServer) Start()

Jump to

Keyboard shortcuts

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