web

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteHandler

type RouteHandler struct {
	Path        string
	Method      string
	HandlerFunc http.HandlerFunc
}

type WebRouter

type WebRouter struct {
	SpotifyAuthCallbackWebHandler spotify_handlers.SpotifyAuthCallbackWebHandlerInterface
}

func (*WebRouter) Build

func (wr *WebRouter) Build() []RouteHandler

type WebRouterInterface

type WebRouterInterface interface {
	Build() []RouteHandler
}

type WebServer

type WebServer struct {
	Router        chi.Router
	Handlers      []RouteHandler
	WebServerPort int64
	Logger        logger.LoggerInterface
}

func (*WebServer) Start

func (s *WebServer) Start()

type WebServerInterface

type WebServerInterface interface {
	Start()
}

func NewWebServer

func NewWebServer(
	serverPort int64,
	logger logger.LoggerInterface,
	handlers []RouteHandler,
) WebServerInterface

Directories

Path Synopsis
handlers

Jump to

Keyboard shortcuts

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