httphandler

package
v0.0.0-...-6ad4eb5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BOUNDARY = "--BOUNDARY"
)

Functions

func HandleH264StreamRequest

func HandleH264StreamRequest(streamChan chan []byte, writer http.ResponseWriter, request *http.Request, reusableOutput interface{}) (bool, interface{}, error)

func HandleJpegStreamRequest

func HandleJpegStreamRequest(streamChan chan []byte, writer http.ResponseWriter, req *http.Request, reusableOutput interface{}) (bool, interface{}, error)

func SendH264Headers

func SendH264Headers(writer http.ResponseWriter)

func SendHTTPHeaders

func SendHTTPHeaders(streamType consts.StreamType, writer http.ResponseWriter) error

func SendJpegHeaders

func SendJpegHeaders(writer http.ResponseWriter)

Types

type HttpStreamHandler

type HttpStreamHandler func(streamChan chan []byte, writer http.ResponseWriter, request *http.Request, reusableOutput interface{}) (bool, interface{}, error)

func GetHTTPStreamHandler

func GetHTTPStreamHandler(streamType consts.StreamType) (HttpStreamHandler, error)

Jump to

Keyboard shortcuts

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