sink

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebsocketActive websocketState = "active"
	WebsocketClosed websocketState = "closed"
)

Variables

This section is empty.

Functions

func CreateSinks added in v1.5.6

func CreateSinks(p *config.PipelineConfig) (map[types.EgressType]Sink, error)

Types

type FileSink added in v1.5.6

type FileSink struct {
	uploader.Uploader

	*config.OutputConfig
	// contains filtered or unexported fields
}

func (*FileSink) Cleanup added in v1.5.6

func (s *FileSink) Cleanup()

func (*FileSink) Finalize added in v1.5.6

func (s *FileSink) Finalize() error

func (*FileSink) Start added in v1.5.6

func (s *FileSink) Start() error

type SegmentSink added in v1.5.6

type SegmentSink struct {
	uploader.Uploader

	*config.OutputConfig
	// contains filtered or unexported fields
}

func (*SegmentSink) Cleanup added in v1.5.6

func (s *SegmentSink) Cleanup()

func (*SegmentSink) EnqueueSegmentUpload added in v1.5.6

func (s *SegmentSink) EnqueueSegmentUpload(segmentPath string, endTime int64) error

func (*SegmentSink) Finalize added in v1.5.6

func (s *SegmentSink) Finalize() error

func (*SegmentSink) SetOnFailure added in v1.5.6

func (s *SegmentSink) SetOnFailure(f func(error))

func (*SegmentSink) Start added in v1.5.6

func (s *SegmentSink) Start() error

func (*SegmentSink) StartSegment added in v1.5.6

func (s *SegmentSink) StartSegment(filepath string, startTime int64) error

func (*SegmentSink) UpdateStartDate added in v1.5.6

func (s *SegmentSink) UpdateStartDate(t time.Time)

type SegmentUpdate added in v1.5.6

type SegmentUpdate struct {
	// contains filtered or unexported fields
}

type Sink added in v1.5.6

type Sink interface {
	Start() error
	Finalize() error
	Cleanup()
}

type WebsocketSink added in v1.5.6

type WebsocketSink struct {
	// contains filtered or unexported fields
}

func (*WebsocketSink) Cleanup added in v1.5.6

func (s *WebsocketSink) Cleanup()

func (*WebsocketSink) Close added in v1.5.6

func (s *WebsocketSink) Close() error

func (*WebsocketSink) Finalize added in v1.5.6

func (s *WebsocketSink) Finalize() error

func (*WebsocketSink) OnTrackMuted added in v1.5.6

func (s *WebsocketSink) OnTrackMuted(muted bool)

func (*WebsocketSink) Start added in v1.5.6

func (s *WebsocketSink) Start() error

func (*WebsocketSink) Write added in v1.5.6

func (s *WebsocketSink) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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