Documentation ¶
Overview ¶
Package mongodbclient creates a mongodb client.
Index ¶
Constants ¶
View Source
const DefaultTimeout = 10 * time.Second
DefaultTimeout is used when Options Timeout isn't specified.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { URI string Username string Password string TLSCAFile string Timeout time.Duration // Defaults to 10 seconds MinPoolSize uint64 Logf func(format string, v ...any) // Defaults to log.Printf Debug bool // Log debug messages }
Options specifies parameters for mongodb client.
Click to show internal directories.
Click to hide internal directories.