Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { App *AppConfig `json:"app" yaml:"app"` Database *DatabaseConfig `json:"database" yaml:"database"` Server *ServerConfig `json:"server" yaml:"server"` Meter *MeterConfig `json:"meter" yaml:"meter"` Vault *VaultConfig `json:"-" yaml:"-"` Tracer *TracerConfig `json:"tracer" yaml:"tracer"` }
type DatabaseConfig ¶
type DatabaseConfig struct { DSN string `json:"dsn" yaml:"dsn"` Type string `json:"-" yaml:"-"` Migrate string `json:"-" yaml:"-"` ConnStr string `json:"-" yaml:"-"` MaxOpenConns int `json:"-" yaml:"-"` MaxIdleConns int `json:"-" yaml:"-"` ConnMaxLifetime time.Duration `json:"-" yaml:"-"` ConnMaxIdleTime time.Duration `json:"-" yaml:"-"` MigrateForce bool `json:"-" yaml:"-"` }
type MeterConfig ¶
type ServerConfig ¶
type ServerConfig struct { Name string `json:"name" yaml:"name"` Version string `json:"-" yaml:"-"` Addr string `json:"addr" yaml:"addr" default:":9090"` Crt string `json:"crt" yaml:"crt"` Key string `json:"key" yaml:"key"` ID string `json:"-" yaml:"-" default:"micro:generate uuid"` LoggerLevel string `json:"logger_level" yaml:"logger_level"` }
type TracerConfig ¶
type TracerConfig struct { Metadata map[string]string `json:"metadata" yaml:"metadata"` AgentHost string `env:"JAEGER_AGENT_HOST" json:"host" yaml:"host" default:"127.0.0.1"` AgentPort string `env:"JAEGER_AGENT_PORT" json:"port" yaml:"port" default:"6831"` Collector string `env:"JAEGER_ENDPOINT,TRACER_ENDPOINT" json:"endpoint" yaml:"endpoint"` }
type VaultConfig ¶
Click to show internal directories.
Click to hide internal directories.