config

package
v0.0.0-...-2972770 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "Golang gRPC Example"
View Source
const Version = "0.0.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ListeningPort int
	// contains filtered or unexported fields
}

func New

func New() (*Configuration, error)

NewConfig returns a new Config struct

func (*Configuration) GetEnvInt

func (config *Configuration) GetEnvInt(name string, fallback int) int

func (*Configuration) GetEnvString

func (config *Configuration) GetEnvString(name string, fallback string) string

type ExamplePostgresConfig

type ExamplePostgresConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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