Documentation ¶ Index ¶ type Account func InitMongo(db *mongo.Client, collection *mongo.Collection) *Account func (a *Account) GetAll() ([]Account, error) func (a *Account) Insert(name, programmingLanguage string) (Account, error) 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) Source Files ¶ View all Source files mongo_api.go Click to show internal directories. Click to hide internal directories.