http

package
v0.0.0-...-31c1c1e Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 34 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
	DiskFS        fs.Filesystem
	MemFS         MemFSConfig
	IPLimiter     net.IPLimiter
	Profiling     bool
	Cors          CorsConfig
	RTMP          rtmp.Server
	JWT           jwt.JWT
	Config        config.Store
	Cache         cache.Cacher
	Sessions      session.Registry
	Router        router.Router
	ReadOnly      bool
}

type CorsConfig

type CorsConfig struct {
	Origins []string
}

type MemFSConfig

type MemFSConfig struct {
	EnableAuth bool
	Username   string
	Password   string
	Filesystem fs.Filesystem
}

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
bodysize
Package bodysize is an echo middleware that fixes the final number of body bytes sent on the wire
Package bodysize is an echo middleware that fixes the final number of body bytes sent on the wire
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