Documentation
¶
Index ¶
- func Connect() (err error)
- type HistoryRepoForksNum
- type HistoryRepoStarredNum
- type HistoryRepoWatchersNum
- type HistoryUserFollowersNum
- type HistoryUserFollowingNum
- type HistoryUserGistNum
- type HistoryUserReposNum
- type Log
- type Logger
- type Repo
- 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 HistoryRepoStarredNum ¶
HistoryRepoStarredNum ..
type HistoryRepoWatchersNum ¶
HistoryRepoWatchersNum ..
type HistoryUserFollowersNum ¶
HistoryUserFollowersNum ..
type HistoryUserFollowingNum ¶
HistoryUserFollowingNum ..
type HistoryUserGistNum ¶
HistoryUserGistNum ..
type HistoryUserReposNum ¶
HistoryUserReposNum ..
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 ..
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
¶
Click to show internal directories.
Click to hide internal directories.