package
0.0.1
Repository: https://github.com/meikwei/aetim.git
Documentation: pkg.go.dev

# Functions

return absolude path join ../config/, this is k8s container config path.
No description provided by the author
getProjectRoot returns the absolute path of the project root directory.
LoadConfig 从指定路径加载配置文件,并使用给定的环境变量前缀进行环境变量配置的解析。 它将配置文件的内容解析到提供的 config 参数中。 参数: - path: 配置文件的路径。 - envPrefix: 用于加载环境变量的前缀。 - config: 指向要解析配置的目标结构体的指针。 返回值: - error: 加载或解析配置时遇到的任何错误。.

# Constants

No description provided by the author
DefaultDirPerm is used for creating general directories, allowing the owner to read, write, and execute, while the group and others can only read and execute.
No description provided by the author
ExecFilePerm is used for executable files, allowing the owner to read, write, and execute, while the group and others can only read.
No description provided by the author
No description provided by the author
PrivateFilePerm is used for sensitive files, allowing only the owner to read and write.
ReadOnlyDirPerm is used for read-only directories, allowing the owner, group, and others to only read.
SharedDirPerm is used for shared directories, allowing the owner and group to read, write, and execute, with no permissions for others.

# Variables

go:embed version.

# Structs

AfterConfig 定义了后置任务的配置项.
API 结构定义了API配置的相关参数.
Auth 结构体定义了认证服务的配置参数.
BeforeConfig 定义了前置任务的配置项.
CacheConfig 定义了缓存的配置结构,包括Topic, SlotNum, SlotSize, SuccessExpire和FailedExpire等字段。 这些字段用于配置缓存的主题、槽数量、槽大小、成功和失败的过期时间等。.
Conversation 结构体定义了会话服务的配置参数.
Cos 定义了COS(Cloud Object Storage)服务的配置项.
CronTask 定义了定时任务的相关配置.
Friend 结构体定义了好友服务的配置参数.
Group 结构体定义了群组服务的配置参数.
Kafka 定义了Kafka的配置结构,包括Username, Password, ProducerAck, CompressType, Address, ToRedisTopic, ToMongoTopic, ToPushTopic等字段,以及用于TLS连接的TLSConfig子结构。 这些字段用于配置Kafka的用户名、密码、生产者确认、压缩类型、地址、不同目的的主题名称,以及TLS连接的相关配置。.
LocalCache 定义了本地缓存的配置结构,包括User, Group, Friend和Conversation等缓存配置。 这些配置分别用于不同类型的用户数据缓存。.
Log 定义了日志的配置结构,包括StorageLocation, RotationTime, RemainRotationCount, RemainLogLevel, IsStdout, IsJson和WithStack等字段。 这些字段用于配置日志的存储位置、轮转时间、保留轮转次数、日志级别、是否输出到标准输出、是否以JSON格式记录以及是否记录堆栈信息。.
Minio 定义了MinIO服务的配置结构,包括Bucket, AccessKeyID, SecretAccessKey, SessionToken, InternalAddress和ExternalAddress等字段。 这些字段用于配置MinIO的存储桶、访问密钥、秘钥、会话令牌、内部地址和外部地址等。.
Mongo 定义了MongoDB的配置结构,包括URI, Address, Database, Username, Password, MaxPoolSize和MaxRetry等字段。 这些字段用于配置MongoDB的连接URI、地址、数据库名称、用户名、密码、最大连接池大小和最大重试次数。.
Msg 结构体定义了消息服务的配置参数.
MsgGateway 定义了消息网关的配置.
MsgTransfer 定义了消息传输的配置.
Notification 定义了各种通知的配置集合.
NotificationConfig 定义了各种通知的配置.
OfflinePushConfig 定义了离线推送的配置.
Oss 定义了OSS(Object Storage Service)服务的配置项.
Prometheus 结构定义了Prometheus监控的配置.
Push 结构体定义了推送服务的配置参数.
Redis 定义了Redis服务的配置项.
RpcRegisterName 定义了RPC服务的注册名称.
Share 定义了共享配置的结构体.
Third 定义了与第三方服务配置相关的结构体.
TLSConfig 定义了TLS连接的配置结构,包括EnableTLS, CACrt, ClientCrt, ClientKey, ClientKeyPwd和InsecureSkipVerify等字段。 这些字段用于配置是否启用TLS、CA证书路径、客户端证书路径、客户端密钥路径、客户端密钥密码和是否跳过TLS验证。.
User 定义了用户服务的配置结构体.
Webhooks 定义了所有事件前后的配置信息.
ZooKeeper 定义了与ZooKeeper交互的配置.