playback

package
v0.0.0-...-177ec65 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 27 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

type Segment struct {
	Fpath string
	Start time.Time
}

Segment is a recording segment.

func FindSegments

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

FindSegments returns all segments of a path.

type Server

type Server struct {
	Address        string
	Encryption     bool
	ServerKey      string
	ServerCert     string
	AllowOrigin    string
	TrustedProxies conf.IPNetworks
	ReadTimeout    conf.StringDuration
	PathConfs      map[string]*conf.Path
	AuthManager    serverAuthManager
	Parent         logger.Writer
	// contains filtered or unexported fields
}

Server is the playback server.

func (*Server) Close

func (s *Server) Close()

Close closes Server.

func (*Server) Initialize

func (s *Server) Initialize() error

Initialize initializes Server.

func (*Server) Log

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

Log implements logger.Writer.

func (*Server) ReloadPathConfs

func (s *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