config

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(com *cobra.Command)

Setup prepares config

Types

type Config

type Config struct {
	Parameters           ParametersConfig
	DebugMode            bool
	AuthenticationTokens []string
}

Config contains full Simple Sidecar configuration

func New

func New() *Config

New returns a new Config struct

type ParametersConfig

type ParametersConfig struct {
	Port            string
	WriteTimeout    int
	ReadTimeout     int
	IdleTimeout     int
	GracefulTimeout int
}

ParametersConfig contains the API server configuration

Jump to

Keyboard shortcuts

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