mongodb

package
v0.0.0-...-a798b49 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(db db.Database) store.Store

MongoDB implementation for store

Types

type Store

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

func (Store) CreateUser

func (s Store) CreateUser(user entity.User) error

func (Store) DeleteUser

func (s Store) DeleteUser(id string) error

func (Store) GetUserForCompany

func (s Store) GetUserForCompany(companyID string) (entity.User, error)

func (Store) UpdateUser

func (s Store) UpdateUser(id string, user entity.User) (entity.User, error)

Jump to

Keyboard shortcuts

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