hlsrewrite

package
v16.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHLSRewriteConfig = HLSRewriteConfig{
	Skipper: func(c echo.Context) bool {
		req := c.Request()

		return !strings.HasSuffix(req.URL.Path, ".m3u8")
	},
	PathPrefix: "",
}

Functions

func NewHLSRewrite

func NewHLSRewrite() echo.MiddlewareFunc

NewHTTP returns a new HTTP session middleware with default config

func NewHLSRewriteWithConfig

func NewHLSRewriteWithConfig(config HLSRewriteConfig) echo.MiddlewareFunc

Types

type HLSRewriteConfig

type HLSRewriteConfig struct {
	// Skipper defines a function to skip middleware.
	Skipper    middleware.Skipper
	PathPrefix string
}

Jump to

Keyboard shortcuts

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