app

package
v0.0.0-...-a193200 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestAPIProvider

type RestAPIProvider struct {
	Host     string        `yaml:"host"`
	Insecure bool          `yaml:"insecure"`
	Timeout  time.Duration `yaml:"timeout"`
}

RestAPIProvider defines the configuration specific to the connection to RestAPIProvider.

type Spec

type Spec struct {
	AppName         string          `yaml:"appName" envconfig:"APP_NAME"`
	Environment     string          `yaml:"environment"`
	Host            string          `yaml:"host"`
	Insecure        bool            `yaml:"insecure"`
	RestAPIProvider RestAPIProvider `yaml:"restAPIProvider"`
	Port            uint16          `yaml:"port"`
}

Spec defines the configuration relevant to the gRPC API.

func (*Spec) Validate

func (s *Spec) Validate() error

Validate checks that the values defined in the config are valid.

Jump to

Keyboard shortcuts

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