modulepackage
1.0.0
Repository: https://github.com/nextmicro/next-component.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
Connect initializes the Client by starting background monitoring goroutines.
Middleware with mongo middleware option.
No description provided by the author
NewClient creates a new Client and then initializes it using the Connect method.
WithAddress 设置地址.
WithConfig sets the mongo config.
WithDatabase 设置数据库名称.
WithDialTimeout 设置拨号超时时间.
WithDisableLogging 设置禁用日志.
WithDisableMetric 设置禁用监控.
WithDisableTrace 设置禁用链路.
WithEnableLoggingRequest 设置开启记录请求参数.
WithEnableLoggingResponse 设置开启记录响应参数.
WithPassword 设置密码.
WithPoolSize 设置连接池大小.
WithReplicaSet 设置副本集.
WithSlowThreshold 设置慢日志门限值.
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author