Files
txix be5ce45d17
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s
2026-07-07 10:23:56: merge [main:172c90b0e5097baa84d498b93d1bd705834bf9f0];
2026-07-07 10:23:56 +03:00

29 lines
665 B
Go

package conf
import (
"reflect"
"github.com/txix-open/isp-kit/dbx"
"github.com/txix-open/isp-kit/log"
"github.com/txix-open/isp-kit/rc/schema"
"github.com/txix-open/jsonschema"
)
//nolint:gochecknoinits
func init() {
schema.CustomGenerators.Register("logLevel", func(field reflect.StructField, t *jsonschema.Schema) {
t.Type = "string"
t.Enum = []any{"debug", "info", "error", "fatal"}
})
}
type Remote struct {
Database dbx.Config `schema:"Настройка базы данных"`
Baseline Baseline
LogLevel log.Level `schemaGen:"logLevel" schema:"Уровень логирования"`
}
type Baseline struct {
InitialAdminUiToken string
}