github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/api/apc/const.go (about) 1 // Package apc: API control messages and constants 2 /* 3 * Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved. 4 */ 5 package apc 6 7 import ( 8 "time" 9 ) 10 11 const ( 12 Proxy = "proxy" 13 Target = "target" 14 ) 15 16 // deployment types 17 const ( 18 DeploymentK8s = "K8s" 19 DeploymentDev = "dev" 20 ) 21 22 const NilValue = "none" // features (flags), log modules, et al. 23 24 // in re: "Slowloris Attack" 25 const ( 26 ReadHeaderTimeout = 16 * time.Second 27 EnvReadHeaderTimeout = "AIS_READ_HEADER_TIMEOUT" 28 ) 29 30 // timeouts for intra-cluster requests 31 const ( 32 DefaultTimeout = time.Duration(-1) 33 LongTimeout = time.Duration(-2) 34 )