refactor
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package core
|
||||
|
||||
import "github.com/AlexxIT/go2rtc/internal/app"
|
||||
|
||||
type EventFunc func(msg any)
|
||||
|
||||
// Listener base struct for all classes with support feedback
|
||||
@@ -16,3 +18,11 @@ func (l *Listener) Fire(msg any) {
|
||||
f(msg)
|
||||
}
|
||||
}
|
||||
|
||||
func (l *Listener) ParseSource(url string) string {
|
||||
return app.ResolveSecrets(url)
|
||||
}
|
||||
|
||||
func (l *Listener) SaveSource(path []string, value any) error {
|
||||
return app.PatchSecret(path, value)
|
||||
}
|
||||
Reference in New Issue
Block a user