mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-15 11:14:43 +00:00
30 lines
707 B
Go
30 lines
707 B
Go
package defs
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/bluenviron/mediamtx/internal/conf"
|
|
"github.com/bluenviron/mediamtx/internal/logger"
|
|
)
|
|
|
|
// StaticSource is a static source.
|
|
type StaticSource interface {
|
|
logger.Writer
|
|
Run(StaticSourceRunParams) error
|
|
APISourceDescribe() APIPathSourceOrReader
|
|
}
|
|
|
|
// StaticSourceParent is the parent of a static source.
|
|
type StaticSourceParent interface {
|
|
logger.Writer
|
|
SetReady(req PathSourceStaticSetReadyReq) PathSourceStaticSetReadyRes
|
|
SetNotReady(req PathSourceStaticSetNotReadyReq)
|
|
}
|
|
|
|
// StaticSourceRunParams is the set of params passed to Run().
|
|
type StaticSourceRunParams struct {
|
|
Context context.Context
|
|
Conf *conf.Path
|
|
ReloadConf chan *conf.Path
|
|
}
|