Documentation ¶
Overview ¶
Package record contains the recording system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonPath ¶ added in v1.5.0
CommonPath returns the common path between all segments with given recording path.
func PathAddExtension ¶ added in v1.5.0
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.
func (*Agent) Initialize ¶ added in v1.2.1
func (w *Agent) Initialize()
Initialize initializes Agent.
type Cleaner ¶
type Cleaner struct { Entries []CleanerEntry Parent logger.Writer // contains filtered or unexported fields }
Cleaner removes expired recording segments from disk.
func (*Cleaner) Initialize ¶ added in v1.4.0
func (c *Cleaner) Initialize()
Initialize initializes a Cleaner.
type CleanerEntry ¶ added in v1.2.0
type CleanerEntry struct { Path string Format conf.RecordFormat DeleteAfter time.Duration }
CleanerEntry is a cleaner entry.
type OnSegmentCompleteFunc ¶ added in v1.8.3
OnSegmentCompleteFunc is the prototype of the function passed as OnSegmentComplete
type OnSegmentCreateFunc ¶ added in v1.8.3
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.