config

package
v0.0.0-...-c77f481 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigJson []byte

Functions

This section is empty.

Types

type Config

type Config struct {
	File               *string `json:"file"`
	LocalOnly          *bool
	Proxy              *string  `json:"proxy"`
	Algorithm          []string `json:"algorithm"`
	Cheksum            *string  `json:"cheksum"`
	RemoteOnly         *bool
	LogLevel           *string
	Timeout            *int    `json:"timeout,string"`
	All                *bool   `json:"all"`
	Key                *string `json:"key"`
	Supplier           *string `json:"supplier"`
	Serve              *bool
	Listen             *string
	Port               *int
	Servers            ServerConfigs
	Dir                *string
	TLSKey             *string
	TLSCert            *string
	ServerConfig       *string
	Keep               *bool
	InsecureSkipVerify *bool
	Quite              *bool
}

config dto

func ParseConfig

func ParseConfig() (*Config, error)

parses terminal params and after reads config files

type ServerConfig

type ServerConfig struct {
	Name    string
	Address string
}

this is for collecting server info from yaml files

type ServerConfigs

type ServerConfigs struct {
	Servers []ServerConfig
}

wrapper for servers

Jump to

Keyboard shortcuts

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