Documentation ¶
Overview ¶
Package session is a HLS session middleware for Gin
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHLSConfig = HLSConfig{ Skipper: middleware.DefaultSkipper, EgressCollector: session.NewNullCollector(), IngressCollector: session.NewNullCollector(), }
View Source
var DefaultHTTPConfig = HTTPConfig{ Skipper: middleware.DefaultSkipper, Collector: session.NewNullCollector(), }
Functions ¶
func NewHLS ¶
func NewHLS() echo.MiddlewareFunc
NewHTTP returns a new HTTP session middleware with default config
func NewHLSWithConfig ¶
func NewHLSWithConfig(config HLSConfig) echo.MiddlewareFunc
NewHLS returns a new HLS session middleware
func NewHTTP ¶
func NewHTTP() echo.MiddlewareFunc
NewHTTP returns a new HTTP session middleware with default config
func NewHTTPWithConfig ¶
func NewHTTPWithConfig(config HTTPConfig) echo.MiddlewareFunc
NewHTTPWithConfig returns a new HTTP session middleware
Types ¶
type HTTPConfig ¶
type HTTPConfig struct { // Skipper defines a function to skip middleware. Skipper middleware.Skipper Collector session.Collector }
Click to show internal directories.
Click to hide internal directories.