auditum

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() int

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 LogConfig struct {
	Format string `yaml:"format" json:"format"`
	Level  string `yaml:"level" json:"level"`
}

func (LogConfig) Validate

func (c LogConfig) Validate() error

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"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL