api

package
v0.0.0-...-dc9438a Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package api implements the Hypcast HTTP API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler serves the Hypcast API for a single tuner.

func NewHandler

func NewHandler(tuner *tuner.Tuner) *Handler

NewHandler creates a Handler serving the Hypcast API for tuner.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TunerStatusHandler

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

func (*TunerStatusHandler) ServeHTTP

func (tsh *TunerStatusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WebRTCHandler

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

func (*WebRTCHandler) ServeHTTP

func (wh *WebRTCHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
Package rpc implements a barebones RPC framework based on HTTP and JSON.
Package rpc implements a barebones RPC framework based on HTTP and JSON.

Jump to

Keyboard shortcuts

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