Files
threshold/globals/globals.go
T

33 lines
950 B
Go
Raw Normal View History

2020-02-12 13:53:27 -05:00
package globals
import "time"
const (
2020-09-08 23:57:26 -04:00
TcpProxyV1 = "boundary-tcp-proxy-v1"
ServiceTokenV1 = "s1"
)
type (
2021-05-04 19:57:35 -05:00
ContextMaxRequestSizeType struct{}
ContextOriginalRequestPathType struct{}
)
2020-02-12 13:53:27 -05:00
var (
// DefaultMaxRequestDuration is the amount of time we'll wait for a request
DefaultMaxRequestDuration = 90 * time.Second
// DefaultMaxRequestSize is the maximum size of a request we allow by default
DefaultMaxRequestSize = int64(1024 * 1024)
// ContextMaxRequestSizeTypeKey is a value to keep linters from complaining
// about clashing string identifiers
ContextMaxRequestSizeTypeKey ContextMaxRequestSizeType
// ContextOriginalRequestPathTypeKey is a value to keep linters from complaining
// about clashing string identifiers
ContextOriginalRequestPathTypeKey ContextOriginalRequestPathType
// RecoveryTokenValidityPeriod is exported so we can modify it in tests if
// we want
RecoveryTokenValidityPeriod = 5 * time.Minute
2020-02-12 13:53:27 -05:00
)