func (c *FaaSConfig) GetMaxIdleConns() int {
	if c.MaxIdleConns < 1 {
		return defaultMaxIdleConns
	}
	return c.MaxIdleConns
}
GetMaxIdleConns is a helper to safely return the configured MaxIdleConns or the default value of 1024
package types
import (
	"net/http"
	"time"
)
const (
	defaultReadTimeout  = 10 * time.Second
	defaultMaxIdleConns = 1024
)
type FaaSHandlers struct {
	FunctionProxy http.HandlerFunc
	FunctionReader http.HandlerFunc
	DeployHandler  http.HandlerFunc
	DeleteHandler  http.HandlerFunc
	ReplicaReader  http.HandlerFunc
	ReplicaUpdater http.HandlerFunc
	SecretHandler  http.HandlerFunc
	LogHandler http.HandlerFunc
	UpdateHandler http.HandlerFunc
	HealthHandler        http.HandlerFunc
	InfoHandler          http.HandlerFunc
	ListNamespaceHandler http.HandlerFunc
}
type FaaSConfig struct {
	TCPPort *int
	ReadTimeout time.Duration
	WriteTimeout time.Duration
	EnableHealth bool
	EnableBasicAuth bool
	SecretMountPath string
	MaxIdleConns int
	MaxIdleConnsPerHost int
}
func (c *FaaSConfig) GetReadTimeout() time.Duration {
	if c.ReadTimeout <= 0*time.Second {
		return defaultReadTimeout
	}
	return c.ReadTimeout
}