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)
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
Click to show internal directories.
Click to hide internal directories.