recorder

package
v0.0.0-...-882a99e Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package recorder contains the recorder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnSegmentCompleteFunc

type OnSegmentCompleteFunc = func(path string, duration time.Duration)

OnSegmentCompleteFunc is the prototype of the function passed as OnSegmentComplete

type OnSegmentCreateFunc

type OnSegmentCreateFunc = func(path string)

OnSegmentCreateFunc is the prototype of the function passed as OnSegmentCreate

type Recorder

type Recorder struct {
	PathFormat        string
	Format            conf.RecordFormat
	PartDuration      time.Duration
	SegmentDuration   time.Duration
	PathName          string
	Stream            *stream.Stream
	OnSegmentCreate   OnSegmentCreateFunc
	OnSegmentComplete OnSegmentCompleteFunc
	Parent            logger.Writer
	// contains filtered or unexported fields
}

Recorder writes recordings to disk.

func (*Recorder) Close

func (w *Recorder) Close()

Close closes the agent.

func (*Recorder) Initialize

func (w *Recorder) Initialize()

Initialize initializes Recorder.

func (*Recorder) Log

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

Log implements logger.Writer.

Jump to

Keyboard shortcuts

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