controller

package
v2.0.0-...-c466ca4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindModulesInProjects

func FindModulesInProjects(projects []model.Project) (result []model.Module, err error)

func GetProjects

func GetProjects(sortBy string) (result []model.Project, err error)

func GetReleases

func GetReleases(url string) (result []model.Release, err error)

func ParseGithubURL

func ParseGithubURL(repo string) (owner string, name string, err error)

func PrintModulesJSON

func PrintModulesJSON(modules []model.Module)

Print Modules in JSON format

func PrintModulesTable

func PrintModulesTable(modules []model.Module)

Print Modules in Table format

func PrintProjectsJSON

func PrintProjectsJSON(projects []model.Project)

Print Projects in JSON format

func PrintProjectsTable

func PrintProjectsTable(projects []model.Project)

Print Projects in Table format

func PrintReleasesJSON

func PrintReleasesJSON(releases []model.Release)

Print Releases in JSON format

func PrintReleasesTable

func PrintReleasesTable(projects []model.Release)

Print Releases in Table format

Types

type ByForks

type ByForks []model.Project

/ Logic to sort by Forks

func (ByForks) Len

func (a ByForks) Len() int

func (ByForks) Less

func (a ByForks) Less(i, j int) bool

func (ByForks) Swap

func (a ByForks) Swap(i, j int)

type ByLastCommit

type ByLastCommit []model.Project

/ Logic to sort by Last Commit

func (ByLastCommit) Len

func (a ByLastCommit) Len() int

func (ByLastCommit) Less

func (a ByLastCommit) Less(i, j int) bool

func (ByLastCommit) Swap

func (a ByLastCommit) Swap(i, j int)

type ByStars

type ByStars []model.Project

/ Logic to sort by Stars

func (ByStars) Len

func (a ByStars) Len() int

func (ByStars) Less

func (a ByStars) Less(i, j int) bool

func (ByStars) Swap

func (a ByStars) Swap(i, j int)

Jump to

Keyboard shortcuts

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