Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
Log LogConfig `yaml:"log" json:"log"`
Tracing TracingConfig `yaml:"tracing" json:"tracing"`
HTTP HTTPConfig `yaml:"http" json:"http"`
GRPC GRPCConfig `yaml:"grpc" json:"grpc"`
Store StoreConfig `yaml:"store" json:"store"`
Settings aud.Settings `yaml:"settings" json:"settings"`
}
func (Configuration) Validate ¶
func (c Configuration) Validate() error
type GRPCConfig ¶
type GRPCConfig struct {
Port string `yaml:"port" json:"port"`
}
func (GRPCConfig) Validate ¶
func (c GRPCConfig) Validate() error
type HTTPConfig ¶
type HTTPConfig struct {
Port string `yaml:"port" json:"port"`
}
func (HTTPConfig) Validate ¶
func (c HTTPConfig) Validate() error
type LogConfig ¶
type PostgresConfig ¶
type PostgresConfig struct {
Host string `yaml:"host" json:"host"`
Port string `yaml:"port" json:"port"`
Database string `yaml:"database" json:"database"`
Username string `yaml:"username" json:"username"`
Password string `yaml:"password" json:"password"`
SSLMode string `yaml:"sslmode" json:"sslmode"`
MigrationsPath string `yaml:"migrationsPath" json:"migrationsPath"`
LogQueries bool `yaml:"logQueries" json:"logQueries"`
}
func (PostgresConfig) Validate ¶
func (c PostgresConfig) Validate() error
type SQLiteConfig ¶
type SQLiteConfig struct {
DatabasePath string `yaml:"databasePath" json:"databasePath"`
MigrationsPath string `yaml:"migrationsPath" json:"migrationsPath"`
LogQueries bool `yaml:"logQueries" json:"logQueries"`
}
func (SQLiteConfig) Validate ¶
func (c SQLiteConfig) Validate() error
type StoreConfig ¶
type StoreConfig struct {
Type string `yaml:"type" json:"type"`
SQLite SQLiteConfig `yaml:"sqlite" json:"sqlite"`
Postgres PostgresConfig `yaml:"postgres" json:"postgres"`
}
func (StoreConfig) Validate ¶
func (c StoreConfig) Validate() error
type TracingConfig ¶
type TracingConfig struct {
Enabled bool `yaml:"enabled" json:"enabled"`
Exporter string `yaml:"exporter" json:"exporter"`
Log TracingLogExporterConfig `yaml:"stdout" json:"stdout"`
Jaeger TracingJaegerExporterConfig `yaml:"jaeger" json:"jaeger"`
OTLP TracingOTLPExporterConfig `yaml:"otlp" json:"otlp"`
}
func (TracingConfig) Validate ¶
func (c TracingConfig) Validate() error
type TracingJaegerExporterConfig ¶
type TracingJaegerExporterConfig struct {
Endpoint string `yaml:"endpoint" json:"endpoint"`
}
func (TracingJaegerExporterConfig) Validate ¶
func (c TracingJaegerExporterConfig) Validate() error
type TracingLogExporterConfig ¶
type TracingLogExporterConfig struct {
Pretty bool `yaml:"pretty" json:"pretty"`
}
type TracingOTLPExporterConfig ¶ added in v0.3.0
type TracingOTLPExporterConfig struct {
Endpoint string `yaml:"endpoint" json:"endpoint"`
}
func (TracingOTLPExporterConfig) Validate ¶ added in v0.3.0
func (c TracingOTLPExporterConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.