database

package
v0.0.0-...-eb2022f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func Connect

func Connect() *DB

func (*DB) CreateEventListing

func (db *DB) CreateEventListing(eventInfo model.CreateEventListingInput) *model.EventListing

func (*DB) CreateUser

func (db *DB) CreateUser(userInfo model.CreateUserInput) *model.User

User

func (*DB) DeleteEventListing

func (db *DB) DeleteEventListing(eventId string) *model.DeleteEventResponse

func (*DB) GetEvent

func (db *DB) GetEvent(id string) *model.EventListing

func (*DB) GetEvents

func (db *DB) GetEvents() []*model.EventListing

func (*DB) GetEventsPaginated

func (db *DB) GetEventsPaginated(page int, limit int) []*model.EventListing

func (*DB) GetUser

func (db *DB) GetUser(id string) *model.User

func (*DB) GetUsers

func (db *DB) GetUsers() []*model.User

func (*DB) UpdateEventListing

func (db *DB) UpdateEventListing(eventId string, eventInfo model.UpdateEventListingInput) *model.EventListing

Jump to

Keyboard shortcuts

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