repositories

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TeamRepository

type TeamRepository struct {
	*mongo.Collection
}

TeamRepository is the repository for Team objects

func NewTeamRepository

func NewTeamRepository(db *mongo.Database) (*TeamRepository, error)

NewTeamRepository creates a new TeamRepository

type UserRepository

type UserRepository struct {
	*mongo.Collection
}

UserRepository is the repository for user objects

func NewUserRepository

func NewUserRepository(db *mongo.Database) (*UserRepository, error)

NewUserRepository creates a new UserRepository

Jump to

Keyboard shortcuts

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