Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvAPIRequestsMax = "MINIO_API_REQUESTS_MAX" EnvAPIRequestsDeadline = "MINIO_API_REQUESTS_DEADLINE" EnvAPIReadyDeadline = "MINIO_API_READY_DEADLINE" EnvAPICorsAllowOrigin = "MINIO_API_CORS_ALLOW_ORIGIN" )
API sub-system constants
Variables ¶
View Source
var ( DefaultKVS = config.KVS{ config.KV{ Key: apiRequestsMax, Value: "0", }, config.KV{ Key: apiRequestsDeadline, Value: "10s", }, config.KV{ Key: apiReadyDeadline, Value: "10s", }, config.KV{ Key: apiCorsAllowOrigin, Value: "*", }, } )
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", }, config.HelpKV{ Key: apiCorsAllowOrigin, Description: `set comma separated list of origins allowed for CORS requests e.g. "https://example1.com,https://example2.com"`, Optional: true, Type: "csv", }, } )
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"` APIReadyDeadline time.Duration `json:"ready_deadline"` APICorsAllowOrigin []string `json:"cors_allow_origin"` }
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.