package
Version:
v0.0.0-alpha5
Opens a new window with list of versions in this module.
Published: Sep 29, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
Path = "config/config.yaml"
DefaultPath = "default.config.yaml"
)
type App struct {
Name string `env-required:"true" yaml:"name"`
}
App -.
type Authn struct {
Disabled bool `yaml:"disabled"`
Keys []string `yaml:"keys"`
}
Authn -.
type Config struct {
App `yaml:"app"`
HTTP `yaml:"http"`
Log `yaml:"logger"`
*Authn `yaml:"authn"`
*Tracer `yaml:"tracer"`
Database `yaml:"database"`
}
Config -.
NewConfig returns permify config.
type Database struct {
Write `env-required:"true" yaml:"write"`
}
Database -.
type HTTP struct {
Port string `env-required:"true" yaml:"port"`
}
HTTP -.
type Log struct {
Level string `env-required:"true" yaml:"log_level"`
}
Log -.
type Tracer struct {
Exporter string `yaml:"exporter"`
Endpoint string `yaml:"endpoint"`
Disabled bool `yaml:"disabled"`
}
Tracer -.
type Write struct {
Connection string `env-required:"true" yaml:"connection"`
PoolMax int `yaml:"pool_max"`
Database string `yaml:"database"`
URI string `yaml:"uri"`
}
Write -
Source Files
¶
Click to show internal directories.
Click to hide internal directories.