config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB                 string // connection string for the database
	URL                string // URL of WAMP server
	Realm              string // realm to use
	Password           string // password for backend
	WaitForServices    string // duration to wait for other services to be ready
	LogLevel           string // sets the log level (zap log level values)
	SQLLogLevel        string // sets the log level for sql subsystem
	LogFormat          string // text vs json
	MigrationSourceUrl string // location of migration files
	EnableTelemetry    bool   // enable telemetry
	TelemetryEndpoint  string // endpoint for telemetry
	ProfilingPort      int    // port for profiling
	PrintMessage       bool   // if true, the message payload will be print on debug level

)

this holds the resolved configuration values from CLI

Functions

func SetupStdOutMetrics added in v0.10.0

func SetupStdOutMetrics() (metric.Exporter, error)

func SetupStdOutTracing added in v0.10.0

func SetupStdOutTracing() (trace.SpanExporter, error)

Types

type Config added in v0.11.0

type Config struct {
	PrintMessage bool // if true, the message payload will be print on debug level
}

Config holds the configuration values which are used by the application

type Telemetry added in v0.10.0

type Telemetry struct {
	// contains filtered or unexported fields
}

func SetupTelemetry added in v0.10.0

func SetupTelemetry(ctx context.Context) (*Telemetry, error)

func (Telemetry) Shutdown added in v0.10.0

func (t Telemetry) Shutdown()

Jump to

Keyboard shortcuts

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