config

package
v0.0.0-...-958c19f Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Viper

func Viper() *viper.Viper

Viper instance

Types

type Config

type Config struct {
	Metadata struct {
		ServiceName string
	}
	Server struct {
		Port uint
		Host string
	}
	Otel struct {
		Log    zap.Config
		Trace  trace.Config
		Metric metric.Config
	}
	DB       DB
	RabbitMQ RabbitMQ
}

Config struct

var Default Config

func Parse

func Parse() Config

Parse get all config support in app

func (Config) String

func (d Config) String() string

type DB

type DB struct {
	Dsn string
}

type RabbitMQ

type RabbitMQ struct {
	DSN string
}

Jump to

Keyboard shortcuts

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