Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore interface {
Tokenstore
Execstore
Userdatastore
}
Datastore access to database
type Tokenstore ¶
type Userdatastore ¶
type Userdatastore interface {
GetFollowers(userID int64) ([]string, error)
SaveFollowers(userID int64, followers []string) error
GetStars(userID int64) ([]model.Star, error)
SaveStars(userID int64, stars []model.Star) error
FollowerCount(userID int64) (int, error)
StarCount(userID int64) (int, error)
RepositoryCount(userID int64) (int, error)
UserExist(userID int64) (bool, error)
}
Click to show internal directories.
Click to hide internal directories.