Documentation ¶
Index ¶
- Variables
- type ApiFunc
- type BadgeInput
- func AppveyorApi(args ...string) BadgeInput
- func BundlephobiaApi(args ...string) BadgeInput
- func ChromeWebStoreApi(args ...string) BadgeInput
- func CircleciApi(args ...string) BadgeInput
- func CodecovApi(args ...string) BadgeInput
- func CratesApi(args ...string) BadgeInput
- func DockerApi(args ...string) BadgeInput
- func GemApi(args ...string) BadgeInput
- func GithubApi(args ...string) BadgeInput
- func HomebrewApi(args ...string) BadgeInput
- func NpmApi(args ...string) BadgeInput
- func OpencollectiveApi(args ...string) BadgeInput
- func PackagephobiaApi(args ...string) BadgeInput
- func PypiApi(args ...string) BadgeInput
- func TravisApi(args ...string) BadgeInput
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RegPass is regexp for matching success build RegPass = regexp.MustCompile(`passed|passing`) // RegFail is regexp for matching failed build RegFail = regexp.MustCompile(`failed|failing`) )
View Source
var ErrorInput = BadgeInput{
Subject: "error",
Status: "api error",
Color: "red",
}
ErrorInput is default input when error occurred
View Source
var GITHUB_TOKEN = os.Getenv("GITHUB_TOKEN")
GITHUB_TOKEN is our github api token cause v4 need it
View Source
var GITHUB_TOPICS = []string{"stars", "forks", "watchers", "release", "tag", "issues", "open-issues", "license", "open-pull-requests"}
GITHUB_TOPICS is github api support topic
View Source
var NPM_VALID_TOPICS = []string{"version", "downloads", "license", "dw", "dm", "dy"}
NPM_VALID_TOPICS is valid topic docker api support
View Source
var VALID_TOPICS = []string{"stars", "pulls"}
VALID_TOPICS is valid topic docker api support
Functions ¶
This section is empty.
Types ¶
type ApiFunc ¶
type ApiFunc func(args ...string) BadgeInput
ApiFunc is function type api provider should implement
type BadgeInput ¶
BadgeInput is input type for badge generator
func BundlephobiaApi ¶
func BundlephobiaApi(args ...string) BadgeInput
BundlephobiaApi is bundlephobia api provider
func ChromeWebStoreApi ¶
func ChromeWebStoreApi(args ...string) BadgeInput
ChromeWebStoreApi is chrome web store api provider
func OpencollectiveApi ¶
func OpencollectiveApi(args ...string) BadgeInput
OpencollectiveApi is opencollective api provider
func PackagephobiaApi ¶
func PackagephobiaApi(args ...string) BadgeInput
PackagephobiaApi is packagephobia api provider
Click to show internal directories.
Click to hide internal directories.