configs

package
v0.0.0-...-f89287e Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

pa

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSchema

type AppSchema struct {
	HTTPInbound   HTTPInboundConfig   `mapstructure:",squash"`
	HTTPOutbound  HTTPOutboundConfig  `mapstructure:",squash"`
	MongoDB       MongoDBConfig       `mapstructure:",squash"`
	Language      LanguageConfig      `mapstructure:",squash"`
	OpenTelemetry OpenTelemetryConfig `mapstructure:",squash"`
}
var App *AppSchema

type HTTPInboundConfig

type HTTPInboundConfig struct {
	Port string `mapstructure:"HTTP_PORT"`
}

type HTTPOutboundConfig

type HTTPOutboundConfig struct {
}

type LanguageConfig

type LanguageConfig struct {
	Default   language.Tag `mapstructure:"LANGUAGE_DEFAULT"`
	Languages []language.Tag
}

type MongoDBConfig

type MongoDBConfig struct {
	URI      string `mapstructure:"MONGODB_URI"`
	Database string `mapstructure:"MONGODB_CAMPAIGN_DB"`
}

type OpenTelemetryConfig

type OpenTelemetryConfig struct {
	TracerName string `mapstructure:"OTEL_TRACER_NAME"`
}

Jump to

Keyboard shortcuts

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