playback

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package playback contains the playback server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment added in v1.5.1

type Segment struct {
	Start time.Time
	// contains filtered or unexported fields
}

Segment is a recording segment.

func FindSegments added in v1.5.1

func FindSegments(
	pathConf *conf.Path,
	pathName string,
) ([]*Segment, error)

FindSegments returns all segments of a path.

type Server

type Server struct {
	Address     string
	ReadTimeout conf.StringDuration
	PathConfs   map[string]*conf.Path
	AuthManager *auth.Manager
	Parent      logger.Writer
	// contains filtered or unexported fields
}

Server is the playback server.

func (*Server) Close

func (p *Server) Close()

Close closes Server.

func (*Server) Initialize

func (p *Server) Initialize() error

Initialize initializes API.

func (*Server) Log

func (p *Server) Log(level logger.Level, format string, args ...interface{})

Log implements logger.Writer.

func (*Server) ReloadPathConfs

func (p *Server) ReloadPathConfs(pathConfs map[string]*conf.Path)

ReloadPathConfs is called by core.Core.

Jump to

Keyboard shortcuts

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