Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB gorm.DB
Functions ¶
Types ¶
type CommitOrgStats ¶
type Organization ¶
type RepoAggStat ¶
type Repository ¶
type Repository struct {
Id int64
GhId int64
Name string `sql:"size(255)"`
Forks int64
Watchers int64
Stargazers int64
Size int64
OpenIssues int64
Description string
Language string
// Stats
LastCommit pq.NullTime
LastPull pq.NullTime
CommitCount int64
OrganizationId int64
// Accessor Fields
OrganizationLogin string `sql:-`
DaysSincePull int64 `sql:-`
DaysSinceCommit int64 `sql:-`
// Related fields
Commits []Commit
Pulls []Pull
Organization Organization
RepoStat []RepoStat
Ignore bool
CreatedAt time.Time
UpdatedAt time.Time
}
func (Repository) TableName ¶
func (r Repository) TableName() string
type User ¶
type User struct {
Id int64
GhId int64
Login string `sql:"size(255)"`
AvatarUrl string `sql:"size(255)"`
CommitCount int64
OrgList string `sql:"size(255)"`
Commits []Commit
}
func (*User) FromGhContrib ¶
func (u *User) FromGhContrib(gh_contrib *github.Contributor)
func (*User) FromGhUser ¶
Click to show internal directories.
Click to hide internal directories.