Versions in this module Expand all Collapse all v2 v2.6.0 Aug 8, 2024 Changes in this version type Cluster + NodesFileDir string + RaftLogLevel string v2.5.6 Jun 25, 2024 v2.5.5 Mar 21, 2024 v2.5.4 Mar 14, 2024 v2.5.3 Mar 14, 2024 v2.5.2 Dec 14, 2023 v2.5.1 Dec 13, 2023 v2.5.0 Oct 15, 2023 v2.4.1 Oct 6, 2023 v2.4.0 Aug 23, 2023 Changes in this version type Config + PprofEnable bool v2.3.9 Aug 1, 2023 v2.3.8 Jul 23, 2023 v2.3.7 Jul 11, 2023 v2.3.5 Jun 1, 2023 Changes in this version type Cluster + InboundPoolSize int + InoutPoolNonblocking bool + OutboundPoolSize int v2.3.0 May 12, 2023 Changes in this version + const AuthDSFree + const AuthDSHttp + const AuthDSMysql + const AuthDSPostgresql + const AuthDSRedis + const AuthModeAnonymous + const AuthModeClientid + const AuthModeUsername + const BridgeWayKafka + const BridgeWayNone + const DiscoveryWayMDNS + const DiscoveryWayMemberlist + const DiscoveryWaySerf + const DiscoveryWayStatic + const RaftImplEtcd + const RaftImplHashicorp + const StorageWayBadger + const StorageWayBolt + const StorageWayMemory + const StorageWayRedis + var ErrAppendCerts = errors.New("append ca cert failure") + var ErrAuthWay = errors.New("auth-way is incorrectly configured") + var ErrClusterOpts = errors.New("cluster options must be configured") + var ErrMissingCertOrKey = errors.New("missing server certificate or private key files") + var ErrStorageWay = errors.New("only redis can be used in cluster mode") + func GenTlsConfig(conf *Config) (*tls2.Config, error) + type Cluster struct + AdvertiseAddr string + AdvertisePort int + BindAddr string + BindPort int + DiscoveryWay uint + GrpcEnable bool + GrpcPort int + Members []string + NodeName string + QueueDepth int + RaftBootstrap bool + RaftDir string + RaftImpl uint + RaftPort int + Tags map[string]string + type Config struct + Auth auth + BridgePath string + BridgeWay uint + Cluster Cluster + Log Log + Mqtt mqtt + Redis redis + StoragePath string + StorageWay uint + func Load(yamlFile string) (*Config, error) + func New() *Config + type Log struct + Caller bool + Compress bool + Enable bool + Env int + ErrorFile string + Format int + InfoFile string + Level int + Localtime bool + MaxAge int + MaxBackups int + MaxSize int + NodeName string + ThirdpartyFile string + type Sampler struct + Burst int + Period int