Documentation ¶
Index ¶
- func GetUniqueId() string
- type Controller
- func (c *Controller) AddEntry(entry *Entry)
- func (c *Controller) AddPerson(person *Person) string
- func (c *Controller) CreateTables()
- func (c *Controller) GetAvgDurationPerYear() ([]int, []float64)
- func (c *Controller) GetEntry(userId string, tripId string) *Entry
- func (c *Controller) GetLastTrip() []*Entry
- func (c *Controller) GetLeaderboard() ([]string, []int)
- func (c *Controller) GetMonthCountForPerson(userId string) ([]string, []int)
- func (c *Controller) GetNumPages(size int) int
- func (c *Controller) GetPeople() []*Person
- func (c *Controller) GetPerson(userId string) *Person
- func (c *Controller) GetPersonsEntries(userId string) []*Entry
- func (c *Controller) GetRecentTrips(num int, page int) [][]*Entry
- func (c *Controller) GetSources() ([]string, []int)
- func (c *Controller) GetTripReason(tripId string) string
- func (c *Controller) GetTripReasons() []string
- func (c *Controller) GetTripsEntries(tripId string) []*Entry
- func (c *Controller) GetUserIdByName(name string) string
- func (c *Controller) GetYearsToDays() ([]int, []int)
- func (c *Controller) GetYearsToNumNewVisitors() ([]int, []int)
- func (c *Controller) GetYearsToNumVisitors() ([]int, []int)
- func (c *Controller) GetYearsToUniqueVisitors() ([]int, []int)
- func (c *Controller) GetYearsToVisitorsSources() ([]int, []string, [][]int)
- func (c *Controller) SearchForTrips(search string) []*Entry
- type Entry
- type Person
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUniqueId ¶
func GetUniqueId() string
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) AddEntry ¶
func (c *Controller) AddEntry(entry *Entry)
func (*Controller) AddPerson ¶
func (c *Controller) AddPerson(person *Person) string
func (*Controller) CreateTables ¶
func (c *Controller) CreateTables()
func (*Controller) GetAvgDurationPerYear ¶
func (c *Controller) GetAvgDurationPerYear() ([]int, []float64)
func (*Controller) GetLastTrip ¶
func (c *Controller) GetLastTrip() []*Entry
func (*Controller) GetLeaderboard ¶
func (c *Controller) GetLeaderboard() ([]string, []int)
func (*Controller) GetMonthCountForPerson ¶
func (c *Controller) GetMonthCountForPerson(userId string) ([]string, []int)
func (*Controller) GetNumPages ¶
func (c *Controller) GetNumPages(size int) int
func (*Controller) GetPeople ¶
func (c *Controller) GetPeople() []*Person
func (*Controller) GetPerson ¶
func (c *Controller) GetPerson(userId string) *Person
func (*Controller) GetPersonsEntries ¶
func (c *Controller) GetPersonsEntries(userId string) []*Entry
func (*Controller) GetRecentTrips ¶
func (c *Controller) GetRecentTrips(num int, page int) [][]*Entry
func (*Controller) GetSources ¶
func (c *Controller) GetSources() ([]string, []int)
func (*Controller) GetTripReason ¶
func (c *Controller) GetTripReason(tripId string) string
func (*Controller) GetTripReasons ¶
func (c *Controller) GetTripReasons() []string
func (*Controller) GetTripsEntries ¶
func (c *Controller) GetTripsEntries(tripId string) []*Entry
func (*Controller) GetUserIdByName ¶
func (c *Controller) GetUserIdByName(name string) string
func (*Controller) GetYearsToDays ¶
func (c *Controller) GetYearsToDays() ([]int, []int)
func (*Controller) GetYearsToNumNewVisitors ¶
func (c *Controller) GetYearsToNumNewVisitors() ([]int, []int)
func (*Controller) GetYearsToNumVisitors ¶
func (c *Controller) GetYearsToNumVisitors() ([]int, []int)
func (*Controller) GetYearsToUniqueVisitors ¶
func (c *Controller) GetYearsToUniqueVisitors() ([]int, []int)
func (*Controller) GetYearsToVisitorsSources ¶
func (c *Controller) GetYearsToVisitorsSources() ([]int, []string, [][]int)
func (*Controller) SearchForTrips ¶
func (c *Controller) SearchForTrips(search string) []*Entry
Click to show internal directories.
Click to hide internal directories.