config

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 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"`
		Kibana     string `yaml:"kibana"`
		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"`
		CAcert             string `yaml:"ca_cert"`
		ClientCert         string `yaml:"client_cert"`
		ClientKey          string `yaml:"client_key"`
		InsecureSkipVerify bool   `yaml:"insecure"`
		Include            bool   `yaml:"include_system"`
		IsS3               bool   `yaml:"is_s3"`
	} `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