mongo_api

package
v0.0.0-...-81bd8e0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID                  primitive.ObjectID `bson:"_id,omitempty"`
	Name                string             `bson:"name"`
	ProgrammingLanguage string             `bson:"programmingLanguage"`
	// contains filtered or unexported fields
}

func InitMongo

func InitMongo(db *mongo.Client, collection *mongo.Collection) *Account

func (*Account) GetAll

func (a *Account) GetAll() ([]Account, error)

func (*Account) Insert

func (a *Account) Insert(name, programmingLanguage string) (Account, error)

Jump to

Keyboard shortcuts

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