Documentation
¶
Index ¶
- func Connect() (err error)
- type HistoryRepoForksNum
- type HistoryRepoIssuesNum
- type HistoryRepoStarredNum
- type HistoryRepoWatchersNum
- type HistoryUserFollowersNum
- type HistoryUserFollowingNum
- type HistoryUserGistNum
- type HistoryUserReposNum
- type IssueComments
- type Log
- type Logger
- type Repo
- func (repo *Repo) Create() (err error)
- func (repo *Repo) FindByID(id uint) (u *Repo, err error)
- func (repo *Repo) FindByRepoID(id uint64) (r *Repo, err error)
- func (repo *Repo) IsEmpty() (isEmpty bool, err error)
- func (repo *Repo) IsExist() (isExist bool, err error)
- func (repo *Repo) Update() (err error)
- type RepoIssues
- type RepoStargazers
- type RepoWatchers
- type User
- func (user *User) Create() (err error)
- func (user *User) FindByID(id uint) (u *User, err error)
- func (user *User) FindByUserID(id uint64) (u *User, err error)
- func (user *User) IsEmpty() (isEmpty bool, err error)
- func (user *User) IsExist() (isExist bool, err error)
- func (user *User) Update() (err error)
- type UserFollowers
- type UserFollowing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HistoryRepoForksNum ¶
HistoryRepoForksNum ..
type HistoryRepoIssuesNum ¶ added in v1.1.0
HistoryRepoIssuesNum ..
func (*HistoryRepoIssuesNum) Create ¶ added in v1.1.0
func (s *HistoryRepoIssuesNum) Create() error
Create ..
type HistoryRepoStarredNum ¶
HistoryRepoStarredNum ..
type HistoryRepoWatchersNum ¶
HistoryRepoWatchersNum ..
type HistoryUserFollowersNum ¶
HistoryUserFollowersNum ..
type HistoryUserFollowingNum ¶
HistoryUserFollowingNum ..
type HistoryUserGistNum ¶
HistoryUserGistNum ..
type HistoryUserReposNum ¶
HistoryUserReposNum ..
type IssueComments ¶ added in v1.1.0
IssueComments ..
type Log ¶
type Log struct {
gorm.Model
Type string
Mark string
Method string
URL string
Response []byte `gorm:"size:65535"`
ErrMsg []byte
}
Log ..
type Repo ¶
type Repo struct {
gorm.Model
UserID uint64
RepoID uint64
Name string
Homepage string
Language string
Size uint64
Licence string
Description string
Stargazers string
Watchers string
}
Repo ..
func (*Repo) FindByRepoID ¶ added in v1.1.0
FindByRepoID ..
type RepoIssues ¶ added in v1.1.0
type RepoIssues struct {
gorm.Model
UserID uint64
RepoID uint64
Number uint64
Comments uint64
Title string
Body []byte
}
RepoIssues issues
func (*RepoIssues) FindByID ¶ added in v1.1.0
func (f *RepoIssues) FindByID(id uint) (u *RepoIssues, err error)
FindByID ..
func (*RepoIssues) IsExist ¶ added in v1.1.0
func (f *RepoIssues) IsExist() (isExist bool, err error)
IsExist ..
type RepoStargazers ¶
RepoStargazers followers
func (*RepoStargazers) IsExist ¶
func (f *RepoStargazers) IsExist() (isExist bool, err error)
IsExist ..
type RepoWatchers ¶
RepoWatchers followers
func (*RepoWatchers) IsExist ¶
func (f *RepoWatchers) IsExist() (isExist bool, err error)
IsExist ..
type User ¶
type User struct {
gorm.Model
UserID uint64
Login string
Type string
Location string
Email string
Followers string
Following string
}
User ..
func (*User) FindByUserID ¶
FindByUserID ..
type UserFollowers ¶
UserFollowers followers
func (*UserFollowers) IsExist ¶
func (f *UserFollowers) IsExist() (isExist bool, err error)
IsExist ..
type UserFollowing ¶
UserFollowing ..
func (*UserFollowing) IsExist ¶
func (f *UserFollowing) IsExist() (isExist bool, err error)
IsExist ..
Source Files
¶
- db.go
- historyRepoForksNum.go
- historyRepoIssuesNum.go
- historyRepoStarredNum.go
- historyRepoWatchersNum.go
- historyUserFollowersNum.go
- historyUserFollowingNum.go
- historyUserGistNum.go
- historyUserReposNum.go
- issueComments.go
- log.go
- repo.go
- repoIssues.go
- repoStargazers.go
- repoWatchers.go
- user.go
- userFollowers.go
- userFollowing.go
Click to show internal directories.
Click to hide internal directories.