locator

package
v0.0.0-...-af79783 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(logToFile, program string, isProd bool, host string)

Types

type Config

type Config struct {
	AppEnv     string `short:"e" long:"app-env" env:"APP_ENV" description:"Application env name"`
	LogPath    string `short:"l" long:"log-path" env:"LOG_PATH" description:"Filename for logs"`
	HostName   string
	Port       int    `short:"p" long:"port" default:"4079"`
	NotifyHost string `short:"n" long:"notify_host" default:"http://127.0.0.1:4080/notify/parent"`
}

func NewConfig

func NewConfig() *Config

func (*Config) IsProd

func (c *Config) IsProd() bool

func (*Config) IsStage

func (c *Config) IsStage() bool

Jump to

Keyboard shortcuts

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