storage

package
v0.0.0-...-c4b14b8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

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

func New

func New(ctx context.Context, cfg config.Mongo) (*MongoDB, error)

func (*MongoDB) Create

func (m *MongoDB) Create(user *models.User) (primitive.ObjectID, error)

func (*MongoDB) GetEmail

func (m *MongoDB) GetEmail(email string) string

func (*MongoDB) GetUserByEmail

func (m *MongoDB) GetUserByEmail(email, password string) (*models.User, error)

Jump to

Keyboard shortcuts

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