Versions in this module Expand all Collapse all v1 v1.0.2 Jun 30, 2022 Changes in this version + const RecommendedEnvPrefix + const RecommendedHomeDir + const RedisKeyPrefix + func GenerateCertsForHostname(host string, rootCA *tls.Certificate, certPath, privateKeyPath string) (*tls.Certificate, error) + func GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) + func GetSubject(host string) pkix.Name + func GetTlsConfig(rootCA CertKey) *tls.Config + func LoadCertificate(host, certPath, privkeyPath string) (*tls.Certificate, error) + func LoadConfig(cfg string, defaultName string) + func RequestShutdown() bool + func ServeHealthCheck(healthPath string, healthAddress string) + func SetupSignalHandler() <-chan struct + type CertKey struct + CertFile string + KeyFile string + type CertsCache struct + CacheMap map[string]*tls.Certificate + RootCa CertKey + type Cluster struct + ClusterId string + Enable bool + IsMasterHandle bool + LoadPolicy string + Name string + Role string + type CompletedConfig struct + func (c CompletedConfig) New() (*GenericProxyServer, error) + type Config struct + Cluster dudu.Cluster + EnableMetrics bool + EnableProfiling bool + Healthz bool + InsecureServing *InsecureServingInfo + Middlewares []string + Plugins []string + SecureServing *SecureServingInfo + func NewConfig() *Config + func (c *Config) Complete() CompletedConfig + type GenericProxyServer struct + Cluster dudu.Cluster + DistributedNode *infoutil.DistributedId + Engine *dudu.ProxyHttpMux + InsecureServingInfo *InsecureServingInfo + LocalNetIFAddr string + MachineId int64 + SecureServingInfo *SecureServingInfo + ShutdownTimeout time.Duration + func (s *GenericProxyServer) Close() + func (s *GenericProxyServer) GetMachineId() error + func (s *GenericProxyServer) InstallAPIs() + func (s *GenericProxyServer) InstallMiddlewares() + func (s *GenericProxyServer) InstallPlugins() + func (s *GenericProxyServer) Run() error + func (s *GenericProxyServer) Setup() + type InsecureServingInfo struct + Address string + BindAddress string + BindPort int + type JwtInfo struct + Key string + MaxRefresh time.Duration + Realm string + Timeout time.Duration + type SecureServingInfo struct + BindAddress string + BindPort int + CertKey CertKey + func (s *SecureServingInfo) Address() string