mongodb

package
v0.0.0-...-81386c3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoRepository

type MongoRepository struct {
	// contains filtered or unexported fields
}

func NewMongoRepository

func NewMongoRepository(mongoURL, mongoDB string, timeout int) (*MongoRepository, error)

func (*MongoRepository) Find

func (m *MongoRepository) Find(code string) (*entity.Redirect, error)

func (*MongoRepository) Store

func (m *MongoRepository) Store(redirect *entity.Redirect) error

Jump to

Keyboard shortcuts

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