configs

package
v0.1.3-beta.7 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFilePathEnvName = "CONFIG_FILE_PATH"

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(namespace string, app string, configFilePath string, envFilePath string) func() (*Config, error)

Types

type APIServer

type APIServer struct {
	GrpcServerAddr string `json:"grpc_server_addr" yaml:"grpc_server_addr"`
	HTTPServerAddr string `json:"http_server_addr" yaml:"http_server_addr"`
}

type Config

type Config struct {
	meta.Meta `json:"-" yaml:"-"`

	Env       string    `json:"env" yaml:"env"`
	Tracing   Tracing   `json:"tracing" yaml:"tracing"`
	APIServer APIServer `json:"api_server" yaml:"api_server"`
}

func NewTestConfig

func NewTestConfig(envFilePath string) (*Config, error)

type Tracing

type Tracing struct {
	OtelCollectorHTTP bool `json:"otel_collector_http" yaml:"otel_collector_http"`
	OtelStdoutEnabled bool `json:"otel_stdout_enabled" yaml:"otel_stdout_enabled"`
}

Jump to

Keyboard shortcuts

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