Documentation
¶
Overview ¶
Package forward contains stream forwarding utilities.
Index ¶
- Variables
- type Dest
- type DestHandler
- type Manager
- func (m *Manager) APIGet(id uuid.UUID) (*defs.APIForwardDest, error)
- func (m *Manager) APIList() *defs.APIForwardDestList
- func (m *Manager) Initialize()
- func (m *Manager) Log(level logger.Level, format string, args ...any)
- func (m *Manager) ReloadConf(forward conf.Forward)
- func (m *Manager) Start(strm *stream.Stream)
- func (m *Manager) Stop()
- type ManagerParent
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDestNotFound = errors.New("forward destination not found")
ErrDestNotFound is returned when a forward destination is not found.
Functions ¶
This section is empty.
Types ¶
type DestHandler ¶
type DestHandler struct {
Pos int
Conf conf.ForwardDest
ReadTimeout conf.Duration
WriteTimeout conf.Duration
UDPMaxPayloadSize int
PathName string
Matches []string
Parent logger.Writer
// contains filtered or unexported fields
}
DestHandler manages a forward destination.
func (*DestHandler) APIItem ¶
func (h *DestHandler) APIItem() defs.APIForwardDest
APIItem returns an API item.
type Manager ¶
type Manager struct {
ReadTimeout conf.Duration
WriteTimeout conf.Duration
UDPMaxPayloadSize int
PathName string
Matches []string
Forward conf.Forward
Parent ManagerParent
// contains filtered or unexported fields
}
Manager manages the forward destinations of a path.
func (*Manager) APIList ¶
func (m *Manager) APIList() *defs.APIForwardDestList
APIList lists all forward destinations.
func (*Manager) ReloadConf ¶
ReloadConf reloads statically-configured destinations.
type ManagerParent ¶
ManagerParent is the parent interface.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package rtmp contains the RTMP forward destination.
|
Package rtmp contains the RTMP forward destination. |
|
Package rtsp contains the RTSP forward destination.
|
Package rtsp contains the RTSP forward destination. |
|
Package srt contains the SRT forward destination.
|
Package srt contains the SRT forward destination. |
|
Package webrtc contains the WebRTC/WHIP forward destination.
|
Package webrtc contains the WebRTC/WHIP forward destination. |
Click to show internal directories.
Click to hide internal directories.