config

package
v0.0.0-...-9df3d9d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Application struct {
		ServiceName    string
		ServiceVersion string
		Env            string
		ServerPort     string
	}
	Logger  LoggerConfig
	DBRead  DBConfig
	DBWrite DBConfig
}

func Setup

func Setup() (*Config, error)

type DBConfig

type DBConfig struct {
	Host     string
	Port     string
	User     string
	Password string
	Database string
}

type GrpcClientService

type GrpcClientService struct {
	Host string
}

type LoggerConfig

type LoggerConfig struct {
	Level           string
	Fulltimestamp   bool
	TimestampFormat string
}

Jump to

Keyboard shortcuts

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