config

package
v0.0.0-...-844ec91 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

AddFlags adds flags for Builder.

Types

type Builder

type Builder struct {
	*Flags
	HealthMetric *prometheus.GaugeVec
}

Builder defines the parametric information of a whisper server instance

func (*Builder) InitFromViper

func (b *Builder) InitFromViper(v *viper.Viper) *Builder

InitFromViper initializes the web server builder with properties retrieved from Viper.

type Flags

type Flags struct {
	Port            string
	LogLevel        string
	TargetHealthURL string
	TargetName      string
}

Flags define the fields that will be passed via cmd

Jump to

Keyboard shortcuts

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