Documentation
¶
Overview ¶
Package record contains the recording system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonPath ¶
CommonPath returns the common path between all segments with given recording path.
func PathAddExtension ¶
func PathAddExtension(path string, format conf.RecordFormat) string
PathAddExtension adds the file extension to path.
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 OnSegmentCreateFunc OnSegmentComplete OnSegmentCompleteFunc 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 { Path string Format conf.RecordFormat DeleteAfter time.Duration }
CleanerEntry is a cleaner entry.
type OnSegmentCompleteFunc ¶
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
Click to show internal directories.
Click to hide internal directories.