consumer

package
v0.0.0-...-6ad4eb5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseStreamConnection

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

func NewBaseStreamConnection

func NewBaseStreamConnection(streamID string, streamType consts.StreamType) BaseStreamConnection

func (*BaseStreamConnection) GetID

func (sc *BaseStreamConnection) GetID() string

func (*BaseStreamConnection) GetType

func (sc *BaseStreamConnection) GetType() consts.StreamType

type StreamConnection

type StreamConnection interface {
	GetID() string
	GetType() consts.StreamType
	GetOutputChan(consts.Quality) (<-chan []byte, error)
	HandleStream(consts.Quality) error
	AddConnection(consts.Quality, interface{}) error
	Close(consts.Quality) error
	IsOpen() bool
}

StreamConnection must be implemented by structs representing stream connections

type StreamConsumer

type StreamConsumer interface {
	Start() error
	GetStream(streamID string) (StreamConnection, error)
	Stop() error
}

StreamConsumer must be implemented by strcuts representing stream consumers

Directories

Path Synopsis
tcp

Jump to

Keyboard shortcuts

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