Documentation ¶
Index ¶
- Variables
- func GetEvent(id int) (content.Event, error)
- func GetEventBySlug(slug string) (content.Event, error)
- func GetEventList() ([]content.Event, error)
- func GetHotel(id int) (content.Hotel, error)
- func GetHotelBySlug(slug string) (content.Hotel, error)
- func GetHotelList() ([]content.Hotel, error)
- func GetPage(id int) (content.Page, error)
- func GetPageBySlug(slug string) (content.Page, error)
- func GetPageList() ([]content.Page, error)
- func GetPresentation(id int) (content.Presentation, error)
- func GetPresentationBySlug(slug string) (content.Presentation, error)
- func GetPresentationList() ([]content.Presentation, error)
- func GetSlot(id int) (content.Slot, error)
- func GetSlotBySlug(slug string) (content.Slot, error)
- func GetSlotList() ([]content.Slot, error)
- func GetSpeaker(id int) (content.Speaker, error)
- func GetSpeakerBySlug(slug string) (content.Speaker, error)
- func GetSpeakerList() ([]content.Speaker, error)
- func GetSponsor(id int) (content.Sponsor, error)
- func GetSponsorBySlug(slug string) (content.Sponsor, error)
- func GetSponsorList() ([]content.Sponsor, error)
- func GetWorkshop(id int) (content.Workshop, error)
- func GetWorkshopBySlug(slug string) (content.Workshop, error)
- func GetWorkshopList() ([]content.Workshop, error)
- type Contact
- type Contacts
- type EventListResult
- type HomePage
- type HotelListResult
- type Location
- type Locations
- type PageListResult
- type Presentation
- type PresentationListResult
- type SlotListResult
- type SpeakerListResult
- type SponsorList
- type SponsorListResult
- type User
- type Users
- type Workshop
- type WorkshopListResult
Constants ¶
This section is empty.
Variables ¶
var BaseURL string
var DB *pop.Connection
DB is a connection to your database to be used throughout your application.
Functions ¶
func GetEventList ¶
func GetHotelList ¶
func GetPageList ¶
func GetPresentation ¶
func GetPresentation(id int) (content.Presentation, error)
func GetPresentationBySlug ¶
func GetPresentationBySlug(slug string) (content.Presentation, error)
func GetPresentationList ¶
func GetPresentationList() ([]content.Presentation, error)
func GetSlotList ¶
func GetSpeakerList ¶
func GetSponsorList ¶
func GetWorkshopList ¶
Types ¶
type Contact ¶
type Contact struct { ID int `json:"id" db:"id"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` Name string `json:"name" db:"name"` Phone string `json:"phone" db:"phone"` Email string `json:"email" db:"email"` }
Contact represents an entity used for communications with a number of components
type EventListResult ¶
type HomePage ¶
type HomePage struct { Hotels []content.Hotel Sponsors SponsorList Presentations []Presentation Workshops []Workshop }
func GetHomePage ¶
type HotelListResult ¶
type Location ¶
type Location struct { ID int `json:"id" db:"id"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` Name string `json:"name" db:"name"` Address string `json:"address" db:"address"` City string `json:"city" db:"city"` State string `json:"state" db:"state"` Zip string `json:"zip" db:"zip"` }
Location represents a place for events or other types
type PageListResult ¶
type Presentation ¶
type Presentation struct { Presentation content.Presentation Speakers []content.Speaker Slot content.Slot }
func GetFullPresentation ¶
func GetFullPresentation(id int) (Presentation, error)
GetFullPresentation returns a full presentation, with the speaker populated.
func GetPresentations ¶
func GetPresentations() []Presentation
type PresentationListResult ¶
type PresentationListResult struct {
Data []content.Presentation `json:"data"`
}
type SlotListResult ¶
type SpeakerListResult ¶
type SponsorList ¶
type SponsorList struct { Diamond []content.Sponsor Platinum []content.Sponsor Gold []content.Sponsor Silver []content.Sponsor Bronze []content.Sponsor }
func SortedSponsorList ¶
func SortedSponsorList(slr []content.Sponsor) SponsorList
type SponsorListResult ¶
type User ¶
type User struct { ID int `json:"id" db:"id"` FirstName string `json:"first_name" db:"first_name"` LastName string `json:"last_name" db:"last_name"` Password string `json:"password" db:"password"` Email string `json:"email" db:"email"` Role string `json:"role" db:"role"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` }
User represents a gcon user
func (*User) Validate ¶
Validate gets run everytime you call a "pop.Validate" method. This method is not required and may be deleted.
func (*User) ValidateSave ¶
ValidateSave gets run everytime you call "pop.ValidateSave" method. This method is not required and may be deleted.
func (*User) ValidateUpdate ¶
ValidateUpdate gets run everytime you call "pop.ValidateUpdate" method. This method is not required and may be deleted.
type Workshop ¶
func GetFullWorkshop ¶
GetFullWorkshop returns a full presentation, with the speaker populated.
func GetWorkshops ¶
func GetWorkshops() []Workshop