Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MaxTimeout is the max timeout for drive MaxTimeout = "max_timeout" // HelpDrive is help for drive HelpDrive = config.HelpKVS{ config.HelpKV{ Key: MaxTimeout, Type: "string", Description: "set per call max_timeout for the drive, defaults to 2 minutes", Optional: true, }, } )
View Source
var DefaultKVS = config.KVS{ config.KV{ Key: MaxTimeout, Value: "", }, }
DefaultKVS - default KVS for drive
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // MaxTimeout - maximum timeout for a drive operation MaxTimeout time.Duration `json:"maxTimeout"` }
Config represents the subnet related configuration
func LookupConfig ¶
LookupConfig - lookup config and override with valid environment settings if any.
func (*Config) GetMaxTimeout ¶
GetMaxTimeout - returns the max timeout value.
Click to show internal directories.
Click to hide internal directories.