fixtures

package
v0.0.0-...-2c40a9a Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertBooking

func InsertBooking(store *db.Store, userID, roomID primitive.ObjectID, numGuests int, from, to time.Time) *types.Booking

func InsertHotel

func InsertHotel(store *db.Store, name string, location string, rating int) *types.Hotel

func InsertRoom

func InsertRoom(store *db.Store, size string, seaside bool, price float64, hotelID primitive.ObjectID) *types.Room

func InsertUser

func InsertUser(store *db.Store, fname, lname string, isAdmin bool) *types.User

Types

This section is empty.

Jump to

Keyboard shortcuts

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