Documentation
¶
Index ¶
Constants ¶
View Source
const ( ReadTimeout = 5 WriteTimeout = 3 IdleTimeout = 1 )
View Source
const (
BaseFeedURL = "https://yt.psmarcin.dev/feed/channel/"
)
View Source
const (
ParamChannelID = "channelId"
)
Variables ¶
This section is empty.
Functions ¶
func CreateHTTPServer ¶
func CreateHTTPServer() *fiber.App
CreateHTTPServer creates configured HTTP server
Types ¶
type Dependencies ¶
type Dependencies struct { YouTube app.YouTubeService YTDL app.YTDLDependencies }
type HTTPServer ¶ added in v1.10.0
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶ added in v1.10.0
func NewHTTPServer( server *fiber.App, youTubeService app.YouTubeService, fileService app.FileService, ) HTTPServer
func (HTTPServer) Serve ¶ added in v1.10.0
func (h HTTPServer) Serve() *fiber.App
Click to show internal directories.
Click to hide internal directories.