Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultKVS = config.KVS{ config.KV{ Key: apiRequestsMax, Value: "0", }, config.KV{ Key: apiRequestsDeadline, Value: "10s", }, } )
DefaultKVS - default storage class config
View Source
var ( Help = config.HelpKVS{ config.HelpKV{ Key: apiRequestsMax, Description: `set the maximum number of concurrent requests, e.g. "1600"`, Optional: true, Type: "number", }, config.HelpKV{ Key: apiRequestsDeadline, Description: `set the deadline for API requests waiting to be processed e.g. "1m"`, Optional: true, Type: "duration", }, } )
Help template for storageclass feature.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { APIRequestsMax int `json:"requests_max"` APIRequestsDeadline time.Duration `json:"requests_deadline"` }
Config storage class configuration
func LookupConfig ¶
LookupConfig - lookup api config and override with valid environment settings if any.
func (*Config) UnmarshalJSON ¶
UnmarshalJSON - Validate SS and RRS parity when unmarshalling JSON.
Click to show internal directories.
Click to hide internal directories.