Documentation
¶
Index ¶
- type DB
- func (db *DB) CreateEventListing(eventInfo model.CreateEventListingInput) *model.EventListing
- func (db *DB) CreateUser(userInfo model.CreateUserInput) *model.User
- func (db *DB) DeleteEventListing(eventId string) *model.DeleteEventResponse
- func (db *DB) GetEvent(id string) *model.EventListing
- func (db *DB) GetEvents() []*model.EventListing
- func (db *DB) GetEventsPaginated(page int, limit int) []*model.EventListing
- func (db *DB) GetUser(id string) *model.User
- func (db *DB) GetUsers() []*model.User
- func (db *DB) UpdateEventListing(eventId string, eventInfo model.UpdateEventListingInput) *model.EventListing
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 (*DB) CreateEventListing ¶
func (db *DB) CreateEventListing(eventInfo model.CreateEventListingInput) *model.EventListing
func (*DB) DeleteEventListing ¶
func (db *DB) DeleteEventListing(eventId string) *model.DeleteEventResponse
func (*DB) GetEvents ¶
func (db *DB) GetEvents() []*model.EventListing
func (*DB) GetEventsPaginated ¶
func (db *DB) GetEventsPaginated(page int, limit int) []*model.EventListing
func (*DB) UpdateEventListing ¶
func (db *DB) UpdateEventListing(eventId string, eventInfo model.UpdateEventListingInput) *model.EventListing
Click to show internal directories.
Click to hide internal directories.