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
Click to show internal directories.
Click to hide internal directories.