package
0.4.0
Repository: https://github.com/stevenxie/api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewProvider creates a new Provider that connects to Mongo using uri, and uses the specified db.
NewProviderFromViper creates a new Provider, configured using Viper.

# Constants

MoodsCollection is the name of Mood objects collection in Mongo.
Namespace is the package namespace, used for configuring environment variables, etc.

# Variables

ErrInvalidID is returned when an hex ID could not be converted into an ObjectID.

# Structs

A MoodService is an implementation of api.MoodService that uses Mongo as the underlying data store.
A Provider provides various services that use Mongo as an underlying data store.