mongo

package
v0.0.0-...-2563dae Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromUser

func NewFromUser(u user.User) mongoUser

Types

type MongoRepository

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

func New

func New(ctx context.Context, connectionURI string) (*MongoRepository, error)

func (*MongoRepository) Create

func (repository *MongoRepository) Create(user *user.User) error

func (*MongoRepository) FindByName

func (repository *MongoRepository) FindByName(name string) (*user.User, error)

func (*MongoRepository) List

func (repository *MongoRepository) List() []user.User

Jump to

Keyboard shortcuts

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