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 NewWebRouter ¶
func NewWebRouter( sacwh spotify_handlers.SpotifyAuthCallbackWebHandlerInterface, ) *WebRouter
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 }
type WebServerInterface ¶
type WebServerInterface interface {
Start()
}
func NewWebServer ¶
func NewWebServer( serverPort int64, logger logger.LoggerInterface, handlers []RouteHandler, ) WebServerInterface
Click to show internal directories.
Click to hide internal directories.