mongodb

package module
v0.0.0-...-ea3c94a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(address string) error

Exec creates then queries an Example

func Setup

func Setup(ctx context.Context, address string) (*mongo.Client, error)

Setup initializes a mongo client

Types

type State

type State struct {
	Name       string `bson:"name"`
	Population int    `bson:"pop"`
}

State is our data model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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