Documentation ¶
Overview ¶
Package record contains the recording system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { WriteQueueSize int PathFormat string Format conf.RecordFormat PartDuration time.Duration SegmentDuration time.Duration PathName string Stream *stream.Stream OnSegmentCreate OnSegmentFunc OnSegmentComplete OnSegmentFunc Parent logger.Writer // contains filtered or unexported fields }
Agent writes recordings to disk.
type Cleaner ¶
type Cleaner struct { Entries []CleanerEntry Parent logger.Writer // contains filtered or unexported fields }
Cleaner removes expired recording segments from disk.
type CleanerEntry ¶
type CleanerEntry struct { PathFormat string Format conf.RecordFormat DeleteAfter time.Duration }
CleanerEntry is a cleaner entry.
type OnSegmentFunc ¶
type OnSegmentFunc = func(string)
OnSegmentFunc is the prototype of the function passed as runOnSegmentStart / runOnSegmentComplete
Click to show internal directories.
Click to hide internal directories.