Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LiveStream ¶
type LiveStream struct {
// contains filtered or unexported fields
}
Defines a generic livestream. A livestream is identified by its url.
func New ¶
func New(url string, done chan *LiveStream, mq *internal.MessageQueue, db *internal.MemoryDB) *LiveStream
func (*LiveStream) Kill ¶
func (l *LiveStream) Kill() error
Kills a livestream process and signal its completition
func (*LiveStream) Start ¶
func (l *LiveStream) Start() error
Start the livestream monitoring process, once completion signals on the done channel
func (*LiveStream) WaitTime ¶
func (l *LiveStream) WaitTime() <-chan time.Duration
type LiveStreamStatus ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor(mq *internal.MessageQueue, db *internal.MemoryDB) *Monitor
func (*Monitor) Persist ¶
Persist the monitor current state to a file. The file is located in the configured config directory
func (*Monitor) Schedule ¶
func (m *Monitor) Schedule()
Detect each livestream completition, if done detach it from the monitor.
func (*Monitor) Status ¶
func (m *Monitor) Status() LiveStreamStatus
Click to show internal directories.
Click to hide internal directories.