orgstats

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtractAdditions = func(st Stat) int {
	return st.Additions
}

ExtractAdditions extract the adds section of the given stat

View Source
var ExtractCommits = func(st Stat) int {
	return st.Commits
}

ExtractCommits extract the commit section of the given stat

View Source
var ExtractDeletions = func(st Stat) int {
	return st.Deletions
}

ExtractDeletions extract the rms section of the given stat

Functions

This section is empty.

Types

type Extract

type Extract func(st Stat) int

Extract is a function that converts a multiple stat into a single stat

type Stat

type Stat struct {
	Additions, Deletions, Commits int
}

Stat represents an user adds, rms and commits count

type StatPair

type StatPair struct {
	Key   string
	Value int
}

func Sort

func Sort(s Stats, extract Extract) []StatPair

type Stats

type Stats map[string]Stat

Stats contains the user->Stat mapping

func Gather

func Gather(token, org string, blacklist []string) (Stats, error)

Gather a given organization's stats

func NewStats

func NewStats() Stats

NewStats return a new Stats map

Jump to

Keyboard shortcuts

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