mongox

package
v0.0.0-...-a5c60e6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provider = wire.NewSet(
	NewClients,
)

Functions

func NewClient

func NewClient(ctx context.Context, config *Config) (*mongo.Client, error)

func NewClients

func NewClients(ctx context.Context, configs Configs) (map[string]*mongo.Client, error)

Types

type Config

type Config struct {
	URI string `mapstructure:"uri" json:"uri" yaml:"uri"`
}

type Configs

type Configs map[string]*Config

Jump to

Keyboard shortcuts

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