- refactor secrets
- add support for env in config - redact sensitive information in logs/responses
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/AlexxIT/go2rtc/internal/app"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -77,3 +79,7 @@ func Caller() string {
|
||||
_, file, line, _ := runtime.Caller(1)
|
||||
return file + ":" + strconv.Itoa(line)
|
||||
}
|
||||
|
||||
func NewSecret(name string, defaultValues interface{}) (*app.Secret, error) {
|
||||
return app.NewSecret(name, defaultValues)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user