backend

package
v0.0.0-...-7e0250b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatsOrderedBy

func GetStatsOrderedBy(ctx context.Context, minNumAuthors int, orderField string, limit int) *[]models.RepoStats

GetStatsOrderedBy returns repo stats based on order of the given field. Include a hyphen at the start of the field to enforce descending order.

func SaveStats

func SaveStats(ctx context.Context, statsToSave *models.RepoStats) (string, error)

SaveStats sets the time and saves stats to the datastore

Types

type RepoStatsPage

type RepoStatsPage struct {
	Title          string
	SubTitle       string
	MenuSection    string
	ContentHead    string
	ContentMessage string
	RepoStats      *[]models.RepoStats
}

RepoStatsPage has a title, subtitle, and list of RepoStats for display

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL