mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
- Deleted the db module, consolidating database-related functionality into the core/mongo package for better organization and maintainability. - Updated all import paths across the codebase to replace references to the removed db module with core/mongo. - Cleaned up unused code and dependencies, enhancing overall project clarity and reducing complexity. - This refactor improves the structure of the codebase by centralizing database operations and simplifying module management.
20 lines
482 B
Go
20 lines
482 B
Go
package mongo
|
|
|
|
import "context"
|
|
|
|
type ClientOption func(options *ClientOptions)
|
|
|
|
type ClientOptions struct {
|
|
Context context.Context
|
|
Uri string
|
|
Host string
|
|
Port int
|
|
Db string
|
|
Hosts []string
|
|
Username string
|
|
Password string
|
|
AuthSource string
|
|
AuthMechanism string
|
|
AuthMechanismProperties map[string]string
|
|
}
|