mongo

package
v0.0.0-...-cdffa6e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DbName         = "users"
	CollectionName = "match"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchRepository

type MatchRepository struct {
	Client *mongo.Client
}

func NewMatchRepository

func NewMatchRepository() (*MatchRepository, error)

func (*MatchRepository) GetById

func (m *MatchRepository) GetById(ctx context.Context, id string) (*models.Match, error)

func (*MatchRepository) GetByName

func (m *MatchRepository) GetByName(ctx context.Context, name string) (*models.Match, error)

func (*MatchRepository) Store

func (m *MatchRepository) Store(ctx context.Context, match *models.Match) error

Jump to

Keyboard shortcuts

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