Wall feed

This commit is contained in:
Scott Ferguson
2014-11-11 10:02:18 -06:00
parent 9b2bc91411
commit 44518e2015
4 changed files with 76 additions and 1 deletions
+10
View File
@@ -27,6 +27,10 @@ type Commitstore interface {
// from the datastore accessible to the specified user.
GetCommitListUser(user *model.User) ([]*model.CommitRepo, error)
// GetCommitListActivity retrieves an ungrouped list of latest commits
// from the datastore accessible to the specified user.
GetCommitListActivity(user *model.User) ([]*model.CommitRepo, error)
// PostCommit saves a commit in the datastore.
PostCommit(commit *model.Commit) error
@@ -72,6 +76,12 @@ func GetCommitListUser(c context.Context, user *model.User) ([]*model.CommitRepo
return FromContext(c).GetCommitListUser(user)
}
// GetCommitListActivity retrieves an ungrouped list of latest commits
// from the datastore accessible to the specified user.
func GetCommitListActivity(c context.Context, user *model.User) ([]*model.CommitRepo, error) {
return FromContext(c).GetCommitListActivity(user)
}
// PostCommit saves a commit in the datastore.
func PostCommit(c context.Context, commit *model.Commit) error {
return FromContext(c).PostCommit(commit)