mongodb

package
v0.0.0-...-56eb26a Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Database           = "tickity"
	EventCollection    = "event"
	ProfileCollection  = "profile"
	LocationCollection = "location"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	mongodb.Config
}

type MongoDB

type MongoDB struct {
	*mongodb.DB
	// contains filtered or unexported fields
}

func New

func New(config Config, logger *otelzap.Logger) *MongoDB

func (MongoDB) GetProfile

func (m MongoDB) GetProfile(ctx context.Context, id string) (*model.Profile, error)

func (MongoDB) GetProfiles

func (m MongoDB) GetProfiles(ctx context.Context, ids []string) ([]model.Profile, error)

func (MongoDB) UpsertProfile

func (m MongoDB) UpsertProfile(ctx context.Context, user *model.Profile) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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