config

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	App struct {
		Port       string `yaml:"port"`
		Bind       string `yaml:"bind"`
		TimeOut    int    `yaml:"-"`
		TimeOutRaw *int   `yaml:"timeout"`
	} `yaml:"app"`
	Elastic struct {
		Host     string `yaml:"host`
		SSL      bool   `yaml:"ssl"`
		Username string `yaml:"username"`
		Password string `yaml:"password"`
		Cert     string `yaml:"certfile"`
		Include  bool   `yaml:"include_system"`
	} `yaml:"elastic"`
}

func Parse

func Parse(f string) Config

Jump to

Keyboard shortcuts

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