config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Shared = new(Config)
)

Functions

func Configure

func Configure(exit chan int) error

Types

type Config

type Config struct {
	Server struct {
		Port    int           `json:"port"`
		Timeout time.Duration `json:"timeout"`
	} `json:"server"`
	Log struct {
		FilePath string `json:"file_path"`
	} `json:"log"`
	Model struct {
		FilePath       string `json:"file_path"`
		BinaryFilePath string `json:"binary_file_path"`
	} `json:"model"`
}

func (*Config) GetPort

func (c *Config) GetPort() string

Jump to

Keyboard shortcuts

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