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"
	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) GetLocation

func (m MongoDB) GetLocation(ctx context.Context, address string) (*model.Location, error)

func (MongoDB) UpsertLocation

func (m MongoDB) UpsertLocation(ctx context.Context, location *model.Location) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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