config

package
v0.0.0-...-2c3712b Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIPort               = "CDMON2_API_PORT"
	TotalNumberOfCores    = "CDMON2_TOTAL_NUMBER_OF_CORES"
	TotalSizeOfMemoryMb   = "CDMON2_TOTAL_SIZE_OF_MEMORY"
	TotalSizeOfDiskMb     = "CDMON2_TOTAL_SIZE_OF_DISK"
	MinimalNumberOfCores  = "CDMON2_MINIMAL_NUMBER_OF_CORES"
	MinimalSizeOfMemoryMb = "CDMON2_MINIMAL_SIZE_OF_MEMORY"
	MininalSizeOfDiskMb   = "CDMON2_MININAML_SIZE_OF_DISK"
	RedisAddr             = "CDMON2_REDIS_ADDR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIPort               string
	TotalNumberOfCores    int
	TotalSizeOfMemoryMb   int
	TotalSizeOfDiskMb     int
	MinimalNumberOfCores  int
	MinimalSizeOfMemoryMb int
	MinimalSizeOfDiskMb   int
	RedisAddr             string
}

func (*Config) Load

func (c *Config) Load() (err error)

type EmptyRecordFunc

type EmptyRecordFunc func() interface{}

Jump to

Keyboard shortcuts

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