Versions in this module Expand all Collapse all v1 v1.8.4 Jan 9, 2025 Changes in this version + const FlagConf + const FlagTransferIndex + var ChatAPIAdminCfgFileName = "chat-api-admin.yml" + var ChatAPIChatCfgFileName = "chat-api-chat.yml" + var ChatRPCAdminCfgFileName = "chat-rpc-admin.yml" + var ChatRPCChatCfgFileName = "chat-rpc-chat.yml" + var DiscoveryConfigFileName = "discovery.yml" + var EnvPrefixMap map[string]string + var LogConfigFileName = "log.yml" + var MongodbConfigFileName = "mongodb.yml" + var RedisConfigFileName = "redis.yml" + var ShareFileName = "share.yml" + func Load(configDirectory string, configFileName string, envPrefix string, ...) error + type AllConfig struct + Admin Admin + AdminAPI API + Chat Chat + ChatAPI API + Discovery Discovery + Log Log + Mongo Mongo + Redis Redis + Share Share + func (a *AllConfig) GetConfigNames() []string + func (a *AllConfig) Name2Config(name string) any type Discovery + Kubernetes Kubernetes + RpcService RpcService + type Kubernetes struct + Namespace string type Mongo + AuthSource string + type RpcService struct + Admin string + Chat string + func (r *RpcService) GetServiceNames() []string v1.8.4-patch.3 Jul 29, 2025 v1.8.4-patch.2 Mar 7, 2025 v1.8.4-patch.1 Feb 28, 2025 v1.8.3 Nov 25, 2024 Changes in this version type Chat + AllowRegister bool v1.8.2 Sep 29, 2024 Changes in this version type Log + IsSimplify bool v1.8.1 Aug 2, 2024 v1.8.0 Aug 2, 2024 Changes in this version + type Discovery struct + Enable string + Etcd Etcd + ZooKeeper ZooKeeper + type Etcd struct + Address []string + Password string + RootDirectory string + Username string v1.7.1 Apr 23, 2024 Changes in this version type RpcRegisterName + func (r *RpcRegisterName) GetServiceNames() []string v1.7.0 Apr 19, 2024 Changes in this version + var ImportTemplate []byte + var Version string + func LoadConfig(path string, envPrefix string, config any) error + type API struct + Api struct{ ... } + type Admin struct + RPC struct{ ... } + Secret string + TokenPolicy struct{ ... } + type AdminUser struct + AdminID string + IMUserID string + Nickname string + type Chat struct + LiveKit struct{ ... } + RPC struct{ ... } + VerifyCode struct{ ... } + type Log struct + IsJson bool + IsStdout bool + RemainLogLevel int + RemainRotationCount uint + RotationTime uint + StorageLocation string + WithStack bool + type Mongo struct + Address []string + Database string + MaxPoolSize int + MaxRetry int + Password string + URI string + Username string + func (m *Mongo) Build() *mongoutil.Config + type Redis struct + Address []string + ClusterMode bool + DB int + EnablePipeline bool + MaxRetry int + Password string + Username string + func (r *Redis) Build() *redisutil.Config + type RpcRegisterName struct + Admin string + Chat string + type Share struct + ChatAdmin []AdminUser + Env string + OpenIM struct{ ... } + ProxyHeader string + RpcRegisterName RpcRegisterName + type ZooKeeper struct + Address []string + Password string + Schema string + Username string