http

package
v16.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListenAndServe = http.ListenAndServe

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger        log.Logger
	LogBuffer     log.BufferWriter
	Restream      restream.Restreamer
	Metrics       monitor.HistoryReader
	Prometheus    prometheus.Reader
	MimeTypesFile string
	Filesystems   []fs.FS
	IPLimiter     net.IPLimiter
	Profiling     bool
	Cors          CorsConfig
	RTMP          rtmp.Server
	SRT           srt.Server
	JWT           jwt.JWT
	Config        cfgstore.Store
	Cache         cache.Cacher
	Sessions      session.RegistryReader
	Router        router.Router
	ReadOnly      bool
}

type CorsConfig

type CorsConfig struct {
	Origins []string
}

type Server

type Server interface {
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

func NewServer

func NewServer(config Config) (Server, error)

Directories

Path Synopsis
Package api provides types for communicating with the REST API
Package api provides types for communicating with the REST API
Package cors implements a validator for CORS origins
Package cors implements a validator for CORS origins
api
Package api implements various handlers for the API routes
Package api implements various handlers for the API routes
jwt
jwks
Package jwks implements a JSON Web Key Set Based on https://github.com/MicahParks/keyfunc without implementing the KeyFunc
Package jwks implements a JSON Web Key Set Based on https://github.com/MicahParks/keyfunc without implementing the KeyFunc
middleware
cache
Package cache is an in-memory LRU cache middleware
Package cache is an in-memory LRU cache middleware
log
Package log implements a logging middleware
Package log implements a logging middleware
mime
mime-type middleware
mime-type middleware
redirect
Package redirect is an echo middleware that applies defined redirects
Package redirect is an echo middleware that applies defined redirects
session
Package session is a HLS session middleware for Gin
Package session is a HLS session middleware for Gin

Jump to

Keyboard shortcuts

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