server

package
v0.0.0-...-5035e0b Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BUFF_SIZE = 128

Variables

This section is empty.

Functions

func ControlRequestHandler

func ControlRequestHandler(server *webtransport.Server) func(http.ResponseWriter, *http.Request)

func RunServer

func RunServer(port string, certFilePath string, keyFilePath string) error

Types

type CommandHandler

type CommandHandler struct {
	// contains filtered or unexported fields
}

func InitCommandHandler

func InitCommandHandler(videoStream *video.VideoStream) *CommandHandler

func (*CommandHandler) Handle

func (ch *CommandHandler) Handle(command CommandIdentifier) (string, error)

type CommandIdentifier

type CommandIdentifier byte
const (
	StartVideoStream CommandIdentifier = iota + 1
	StopVideoStream
)

type CommandNotFound

type CommandNotFound struct{}

func (*CommandNotFound) Error

func (err *CommandNotFound) Error() string

Jump to

Keyboard shortcuts

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