mongodb

package
v0.0.0-...-891ad17 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 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

Jump to

Keyboard shortcuts

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