api

package
v0.0.0-...-2e79410 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 11 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)

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