mongox

package
v0.0.0-...-3de5202 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 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