recorder

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 31 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 {
	WriteQueueSize    int
	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