report

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Username          string                 `json:"username"`
	Created           time.Time              `json:"created,omitempty"`
	Suspended         bool                   `json:"suspended,omitempty"`
	PublicRepos       int64                  `json:"public_repos,omitempty"`
	PrivateRepos      int64                  `json:"private_repos,omitempty"`
	Followers         int64                  `json:"followers,omitempty"`
	Following         int64                  `json:"following,omitempty"`
	Commits           int64                  `json:"commits"`
	UnverifiedCommits int64                  `json:"-"`
	CommitsVerified   bool                   `json:"verified_commits,omitempty"`
	StrongAuth        bool                   `json:"strong_auth,omitempty"`
	Reputation        float64                `json:"reputation"`
	Context           map[string]interface{} `json:"context,omitempty"`
}

Author represents a commit author.

func MakeAuthor

func MakeAuthor(username string) *Author

MakeAuthor creates a new Author instance.

func (*Author) String

func (a *Author) String() string

type Report

type Report struct {
	Repo              string    `json:"repo,omitempty"`
	AtCommit          string    `json:"at_commit,omitempty"`
	GeneratedOn       time.Time `json:"generated_on,omitempty"`
	TotalCommits      int64     `json:"total_commits,omitempty"`
	TotalContributors int64     `json:"total_contributors,omitempty"`
	Contributors      []*Author `json:"contributors,omitempty"`
}

Jump to

Keyboard shortcuts

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