Back to godoc.org

Package server

v0.0.0-...-43d2b9d
Latest Go to latest

The highest tagged major version is .

Published: Nov 2, 2019 | License: BSD-3-Clause | Module: github.com/Toshik1978/go-rest-api

Index

type Globals

type Globals struct {
	Logger            *zap.Logger
	RepositoryFactory repository.Factory

	BuildTime string
	Version   string
}

Globals define some globally initialized in main objects

type Vars

type Vars struct {
	HTTPAddress string
	HTTPPort    string

	DB        string
	DBTimeout time.Duration
}

Vars declare variables for service running

func LoadConfig

func LoadConfig(logger *zap.Logger) Vars

LoadConfig load config

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier