Documentation
¶
Index ¶
- func IsNotAnAdmin(req *http.Request) bool
- type Handler
- func (h *Handler) Leaderboard(w http.ResponseWriter, req *http.Request)
- func (h *Handler) NewTrip(w http.ResponseWriter, req *http.Request)
- func (h *Handler) People(w http.ResponseWriter, req *http.Request)
- func (h *Handler) Person(w http.ResponseWriter, req *http.Request)
- func (h *Handler) Root(w http.ResponseWriter, req *http.Request)
- func (h Handler) Search(w http.ResponseWriter, req *http.Request)
- func (h *Handler) Stats(w http.ResponseWriter, req *http.Request)
- func (h *Handler) SubmitNubz(w http.ResponseWriter, req *http.Request)
- func (h *Handler) SubmitTrip(w http.ResponseWriter, req *http.Request)
- func (h Handler) Trip(w http.ResponseWriter, req *http.Request)
- func (h *Handler) Trips(w http.ResponseWriter, req *http.Request)
- type LeaderPage
- type NewTripPage
- type NubJson
- type NubzJson
- type NubzReturnJson
- type PeoplePage
- type PersonEntry
- type PersonPage
- type PersonParams
- type RootPage
- type SearchPage
- type SearchParams
- type StatsPage
- type TripEntryJson
- type TripJson
- type TripPage
- type TripPageItem
- type TripParams
- type TripsPage
- type TripsParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotAnAdmin ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) Leaderboard ¶
func (h *Handler) Leaderboard(w http.ResponseWriter, req *http.Request)
func (*Handler) SubmitNubz ¶
func (h *Handler) SubmitNubz(w http.ResponseWriter, req *http.Request)
func (*Handler) SubmitTrip ¶
func (h *Handler) SubmitTrip(w http.ResponseWriter, req *http.Request)
type LeaderPage ¶
func (LeaderPage) IsActivePage ¶
func (lp LeaderPage) IsActivePage(num int) bool
type NewTripPage ¶
func (NewTripPage) IsActivePage ¶
func (ntp NewTripPage) IsActivePage(num int) bool
type NubzReturnJson ¶
type NubzReturnJson struct {
Nubz []TripEntryJson `json:"noobs"`
TripId string `json:"trip_id"`
}
type PeoplePage ¶
func (PeoplePage) IsActivePage ¶
func (pp PeoplePage) IsActivePage(num int) bool
func (PeoplePage) TimeForRowEnd ¶
func (pp PeoplePage) TimeForRowEnd(location int) bool
func (PeoplePage) TimeForRowStart ¶
func (pp PeoplePage) TimeForRowStart(location int) bool
type PersonPage ¶
type PersonPage struct {
Person *db.Person
Entries []*db.Entry
Months []string
Trips []int
SearchQuery string
}
func (PersonPage) IsActivePage ¶
func (pp PersonPage) IsActivePage(num int) bool
type PersonParams ¶
type PersonParams struct {
UserId string
}
func (*PersonParams) FieldMap ¶
func (pp *PersonParams) FieldMap() binding.FieldMap
type SearchPage ¶
type SearchPage struct {
PeopleEntries []*PersonEntry
SearchQuery string
}
func (SearchPage) IsActivePage ¶
func (sp SearchPage) IsActivePage(num int) bool
type SearchParams ¶
type SearchParams struct {
Search string
}
func (*SearchParams) FieldMap ¶
func (sp *SearchParams) FieldMap() binding.FieldMap
type StatsPage ¶
type StatsPage struct {
Years []int
NumPeoples []int
NumNoobs []int
NumUniqueVisitors []int
NumDays []int
Sources []string
NumVisitorsForSourcesPerYear [][]int
Durations []float64
SourcesForPie []string
PeopleForPie []int
SearchQuery string
}
func (StatsPage) IsActivePage ¶
type TripEntryJson ¶
type TripJson ¶
type TripJson struct {
Reason string `json:"reason"`
Entries []TripEntryJson `json:"entries"`
}
type TripPage ¶
type TripPage struct {
TripInfo *db.Entry
PeopleEntries []*PersonEntry
SearchQuery string
}
func (TripPage) IsActivePage ¶
type TripPageItem ¶
type TripParams ¶
type TripParams struct {
TripId string
}
func (*TripParams) FieldMap ¶
func (tp *TripParams) FieldMap() binding.FieldMap
type TripsPage ¶
type TripsPage struct {
TripItems []*TripPageItem
SearchQuery string
TripsPageNum int
PagesToShow []int
NumPages int
}
func (TripsPage) IsActivePage ¶
func (TripsPage) IsLastPage ¶
func (TripsPage) IsTripsPageNum ¶
type TripsParams ¶
type TripsParams struct {
Page int
}
func (*TripsParams) FieldMap ¶
func (tp *TripsParams) FieldMap() binding.FieldMap
Click to show internal directories.
Click to hide internal directories.