app

package
v0.0.0-...-288396c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() (*zap.Logger, error)

Types

type Config

type Config struct {
	Database Database
	Server   Server
	Kafka    Kafka
	Jaeger   Jaeger
}

func ParseConfig

func ParseConfig() (Config, error)

type Database

type Database struct {
	Username string `default:"saving_goals_api"`
	Password string `default:"saving_goals_api"`
	Database string `default:"saving_goals"`
	Host     string `default:"localhost"`
	Port     uint16 `default:"5432"`
}

func (Database) DSN

func (db Database) DSN() string

type Jaeger

type Jaeger struct {
	Host string `default:"localhost"`
	Port uint16 `default:"6831"`
}

func (Jaeger) Addr

func (j Jaeger) Addr() string

type Kafka

type Kafka struct {
	Host string `default:"localhost"`
	Port uint16 `default:"29092"`
}

func (Kafka) Addr

func (k Kafka) Addr() string

type Server

type Server struct {
	Port uint16 `default:"8088"`
}

func (Server) Addr

func (srv Server) Addr() string

Jump to

Keyboard shortcuts

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