collector

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Migrator = storage.NewMigrator("/apps/collector/migrations")

This is needed for pkger to pack migration files

Functions

func EventHandler

func EventHandler(w http.ResponseWriter, r *http.Request)

func RouteInstaller

func RouteInstaller(r *mux.Router, _ *env.Environment)

Types

type EventBuffering

type EventBuffering struct {
	URL            string `json:"url"`
	Position       int    `json:"position"`
	Duration       *int   `json:"duration,omitempty"`
	StreamDuration *int   `json:"stream_duration,omitempty"`
	StreamBitrate  *int   `json:"stream_bitrate,omitempty"`
}

type PlaybackStart

type PlaybackStart struct {
	// media bitrate, bits/sec (if known)
	StreamBitrate *int `json:"stream_bitrate,omitempty"`
	// stream duration, seconds
	StreamDuration *int `json:"stream_duration,omitempty"`
	// time before playback started, milliseconds
	TimeToStart int `json:"time_to_start"`
	// LBRY content URL
	URL string `json:"url"`
}

Jump to

Keyboard shortcuts

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