webserver

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

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 3 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
	WebServerPort string
}

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()

start the server

type WebServerStarter

type WebServerStarter struct {
	WebServer WebServer
}

func NewWebServerStarter

func NewWebServerStarter(webServer WebServer) *WebServerStarter

Jump to

Keyboard shortcuts

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