Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Provide( NewHlsPlaylistHandler, NewHlsPlayerHandler, )
Functions ¶
func Run ¶
func Run( lifecycle fx.Lifecycle, playlistHandler *HlsPlaylistHandler, playerHandler *HlsPlayerHandler, )
Types ¶
type HlsPlayerHandler ¶
type HlsPlayerHandler struct{}
func NewHlsPlayerHandler ¶
func NewHlsPlayerHandler() *HlsPlayerHandler
func (*HlsPlayerHandler) ServeHTTP ¶
func (hh *HlsPlayerHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type HlsPlaylistHandler ¶
type HlsPlaylistHandler struct {
// contains filtered or unexported fields
}
func NewHlsPlaylistHandler ¶
func NewHlsPlaylistHandler( cfg *config.Config, s storage.Storage, logger *zap.SugaredLogger, ) *HlsPlaylistHandler
func (*HlsPlaylistHandler) ServeHTTP ¶
func (hh *HlsPlaylistHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.