db

package
v0.0.0-...-1146529 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DBNAME = "hotel-reservation"

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoUserStore

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

mongo implementation

func NewMongoUserStore

func NewMongoUserStore(client *mongo.Client) *MongoUserStore

func (*MongoUserStore) GetUserByID

func (s *MongoUserStore) GetUserByID(ctx context.Context, id string) (*types.User, error)

type UserStore

type UserStore interface {
	GetUserByID(context.Context, string) (*types.User, error)
}

just the user store interface

Jump to

Keyboard shortcuts

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