config

package
v0.0.0-...-cb069d3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 2 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 {
	Postgres PostgresConfig
	GRPC     GRPCConfig
}

Application configuration

func NewConfig

func NewConfig() (*Config, error)

NewConfig parses config file and returns app config

type GRPCConfig

type GRPCConfig struct {
	Port string
}

GRPC config

type PostgresConfig

type PostgresConfig struct {
	Host     string
	Port     string
	User     string
	Password string
	DBName   string
}

Postgresql config

Jump to

Keyboard shortcuts

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