Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventService ¶
type EventService struct {
DB *mgo.Database
}
EventService exposes the Event model's endpoints
func (EventService) Mount ¶
func (s EventService) Mount(r gin.IRouter)
Mount registers all Event endpoints to the specified router.
type Service ¶
type Service interface { // Mount the service (and all of its endpoints) to a router Mount(r gin.IRouter) }
Service is a publicly exposed endpoint for resources.
type UserService ¶
type UserService struct {
DB *mgo.Database
}
UserService exposes the User model's endpoints.
func (UserService) Mount ¶
func (s UserService) Mount(r gin.IRouter)
Mount registers all User endpoints to the specified router.
type VenueService ¶
type VenueService struct {
DB *mgo.Database
}
VenueService exposes Venue's endpoints
func (VenueService) Mount ¶
func (s VenueService) Mount(r gin.IRouter)
Mount registers all Venue endpoints to the specified router.
Click to show internal directories.
Click to hide internal directories.