recorders

package
v0.6.3-rc.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: GPL-3.0 Imports: 24 Imported by: 3

Documentation

Index

Constants

View Source
const (
	RecorderStart   events.EventType = "RecorderStart"
	RecorderStop    events.EventType = "RecorderStop"
	RecorderRestart events.EventType = "RecorderRestart"
)

Variables

View Source
var (
	ErrRecorderExist          = errors.New("recorder is exist")
	ErrRecorderNotExist       = errors.New("recorder is not exist")
	ErrParserNotSupportStatus = errors.New("parser not support get status")
)

Functions

This section is empty.

Types

type Manager

type Manager interface {
	interfaces.Module
	AddRecorder(ctx context.Context, live live.Live) error
	RemoveRecorder(ctx context.Context, liveId live.ID) error
	RestartRecorder(ctx context.Context, liveId live.Live) error
	GetRecorder(ctx context.Context, liveId live.ID) (Recorder, error)
	HasRecorder(ctx context.Context, liveId live.ID) bool
}

func NewManager

func NewManager(ctx context.Context) Manager

type Recorder

type Recorder interface {
	Start() error
	StartTime() time.Time
	GetStatus() (map[string]string, error)
	Close()
}

func NewRecorder

func NewRecorder(ctx context.Context, live live.Live) (Recorder, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL