mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-01 16:00:51 +02:00
WIP: legacy config integration.
This commit is contained in:
parent
0ee11b661a
commit
b5c3f8d4a6
3 changed files with 10 additions and 3 deletions
|
@ -28,7 +28,7 @@ type BroacastManagerCtx struct {
|
|||
pipelinesActive prometheus.Gauge
|
||||
}
|
||||
|
||||
func broadcastNew(pipelineFn func(url string) (string, error), defaultUrl string) *BroacastManagerCtx {
|
||||
func broadcastNew(pipelineFn func(url string) (string, error), defaultUrl string, autostart bool) *BroacastManagerCtx {
|
||||
logger := log.With().
|
||||
Str("module", "capture").
|
||||
Str("submodule", "broadcast").
|
||||
|
@ -38,7 +38,7 @@ func broadcastNew(pipelineFn func(url string) (string, error), defaultUrl string
|
|||
logger: logger,
|
||||
pipelineFn: pipelineFn,
|
||||
url: defaultUrl,
|
||||
started: defaultUrl != "",
|
||||
started: defaultUrl != "" && autostart,
|
||||
|
||||
// metrics
|
||||
pipelinesCounter: promauto.NewCounter(prometheus.CounterOpts{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue