replay

package
v0.0.0-...-84c5a59 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 11 Imported by: 4

Documentation

Overview

Package replay handles the serving of recorded data through a HTTP router.

Index

Constants

View Source
const PathHeader = "/observer-mode/rest/consumer"

PathHeader is the common path header used for requests to the spectator endpoint.

Variables

This section is empty.

Functions

func Router

func Router(retriever Retriever) http.Handler

Router returns a http.Handler that handles requests for recorded data.

Types

type Retriever

type Retriever func(region, gameId string) *recording.Recording

A Retriever provides a recording for a given game ID and region. A nil recording should be returned if the recording does not exist.

Jump to

Keyboard shortcuts

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