config

package
v0.0.0-...-c4655a5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTracer

func GetTracer(tr trace.TracerProvider) trace.Tracer

func NewConnection

func NewConnection() (*gorm.DB, error)

func NewConnectionElastic

func NewConnectionElastic() (*elasticsearch.Client, error)

func NewMeterOtel

func NewMeterOtel() *metric.MeterProvider

func NewTracerOtel

func NewTracerOtel() *trace.TracerProvider

Types

type App

type App struct {
	Server struct {
		Host   string
		Port   string
		Origin string
		Secret string
		URL    string
	}

	Database struct {
		Name string
		Port string
		Host string
		User string
		Pass string
	}

	Elasticsearch struct {
		URL      string
		Username string
		Password string
	}

	ElasticAPM struct {
		Name    string
		APIKey  string
		Version string
		Env     string
	}
}

func GetConfig

func GetConfig() *App

Jump to

Keyboard shortcuts

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