core

package
v0.0.0-...-9897cd0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StakeError

func StakeError(err error)

func WalkRepo

func WalkRepo(repo *git.Repository, output StakeOutput)

Types

type StakeAuthor

type StakeAuthor struct {
	Name          string
	Mail          string
	Total_commits int
}

func (*StakeAuthor) String

func (sa *StakeAuthor) String() string

type StakeAuthors

type StakeAuthors map[string]*StakeAuthor

func (StakeAuthors) AddAuthorFromSignature

func (sa StakeAuthors) AddAuthorFromSignature(signature *git.Signature)

func (StakeAuthors) Perform

func (sa StakeAuthors) Perform(commit *git.Commit)

type StakeHTMLOutput

type StakeHTMLOutput struct {
	// contains filtered or unexported fields
}

**********

  • HTML *********

type StakeInfo

type StakeInfo struct {
	Version        string
	BuildDate      time.Time
	GenerationTime time.Duration
}

func (*StakeInfo) SetInfo

func (si *StakeInfo) SetInfo(version string, start_generation time.Time)

func (*StakeInfo) String

func (si *StakeInfo) String() string

type StakeJSONOutput

type StakeJSONOutput struct {
	// contains filtered or unexported fields
}

**********

  • JSON *********

type StakeOutput

type StakeOutput interface {
	// contains filtered or unexported methods
}

Interface

func GetStakeOutput

func GetStakeOutput(arg string) StakeOutput

type StakeRepository

type StakeRepository struct {
	Start_date time.Time
	End_date   time.Time

	/* Commits */
	Total_commits int
	Year_commits  map[int]int
	Month_commits map[time.Month]int
}

func NewStakeRepository

func NewStakeRepository() *StakeRepository

func (*StakeRepository) Perform

func (sc *StakeRepository) Perform(commit *git.Commit)

func (*StakeRepository) String

func (sc *StakeRepository) String() string

type StakeYear

type StakeYear map[int]int

Jump to

Keyboard shortcuts

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