ports

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

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

func RequestContext added in v1.5.0

func RequestContext() func(c *fiber.Ctx) error

Types

type Dependencies

type Dependencies struct {
	YouTube app.YouTubeService
	YTDL    app.YTDLDependencies
}

type HttpServer

type HttpServer struct {
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer(
	server *fiber.App,
	youTubeService app.YouTubeService,
	ytdlService app.YTDLDependencies,
) HttpServer

func (HttpServer) Serve

func (h HttpServer) Serve() *fiber.App

Jump to

Keyboard shortcuts

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