calculator

package
v0.0.0-...-2a0f026 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrAvg

type PrAvg struct {
	Files     int
	Additions int
	Deletions int
	Changes   int
	Total     int
}

PrAvg holds the pull request average.

type PullRequestCalc

type PullRequestCalc struct {
	Num int
	Avg PrAvg
}

PullRequestCalc holds pull request calculator result.

type PullRequestCalculator

type PullRequestCalculator interface {
	GetAverage([]repository.PullRequests) PullRequestCalc
}

PullRequestCalculator is an interface for pull request calculator.

func NewPullRequestCalculator

func NewPullRequestCalculator() PullRequestCalculator

NewPullRequestCalculator creates pull request calculator.

Jump to

Keyboard shortcuts

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