Documentation ¶
Index ¶
- func CreateClient(token *string, url *string) *gitlab.Client
- func FetchCommits(user *User, opts *FetchCommitsOptions) []*gitlab.Commit
- func FetchProjectsMap(user *User) map[int]*Project
- type Bucket
- type FetchCommitsOptions
- type Namespace
- type Occurences
- type Project
- type ProjectWithCommits
- type Stats
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func FetchCommits ¶
func FetchCommits(user *User, opts *FetchCommitsOptions) []*gitlab.Commit
func FetchProjectsMap ¶
Types ¶
type Bucket ¶
type FetchCommitsOptions ¶
type Occurences ¶
type Project ¶
type Project struct { ID int `json:"id"` Description string `json:"description"` SSHURLToRepo string `json:"ssh_url_to_repo"` WebURL string `json:"web_url"` Name string `json:"name"` Path string `json:"path"` PathWithNamespace string `json:"path_with_namespace"` CreatedAt *time.Time `json:"created_at"` LastActivityAt *time.Time `json:"last_activity_at"` Namespace *Namespace `json:"namespace"` }
func FetchProjects ¶
type ProjectWithCommits ¶
type ProjectWithCommits struct { Project *gitlab.Project `json:"project"` Commits []*gitlab.Commit `json:"commits"` }
type Stats ¶
type Stats struct { Count int Types map[string]int Issues *Occurences Gitmoji *Occurences IssuePrefix *Occurences }
func CommitsToStats ¶
func CommitsToStats(commits []*gitlab.Commit) (stats Stats)
Click to show internal directories.
Click to hide internal directories.