origin

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package origin serves videos' encrypted segments from storage to viewers and CDNs, reading the bucket with this server's own storage key, so the bucket itself stays private. Playlists, keys and sources go through the API. Each request is a row of origin_access_logs in ClickHouse, where video delivery is metered.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Origin

type Origin struct {
	Store      core.Storage
	Deliveries *core.ClickHouseLog
	Trusted    []netip.Prefix // proxies whose X-Forwarded-For names the viewer
}

Origin is the handler; Deliveries receives one row per segment request.

func (*Origin) ServeHTTP

func (o *Origin) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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