mongodbKit

package
v3.0.78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, opts ...*options.ClientOptions) (*mongo.Client, error)

func NewClientSimply

func NewClientSimply(ctx context.Context, uri string) (*mongo.Client, error)

NewClientSimply

PS: 单点启动MongoDB,默认使用 27017 端口.

@param uri e.g."mongodb://localhost:27017"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL