Versions in this module Expand all Collapse all v1 v1.0.0 Dec 31, 2017 Changes in this version + func CreateRepo(c context.Context, repo *model.Repo) error + func CreateUser(c context.Context, user *model.User) error + func DeleteRepo(c context.Context, repo *model.Repo) error + func DeleteUser(c context.Context, user *model.User) error + func GetRepo(c context.Context, id int64) (*model.Repo, error) + func GetRepoIntersect(c context.Context, repos []*model.Repo) ([]*model.Repo, error) + func GetRepoIntersectMap(c context.Context, repos []*model.Repo) (map[string]*model.Repo, error) + func GetRepoMulti(c context.Context, slug ...string) ([]*model.Repo, error) + func GetRepoOwner(c context.Context, owner string) ([]*model.Repo, error) + func GetRepoOwnerName(c context.Context, owner, name string) (*model.Repo, error) + func GetRepoSlug(c context.Context, slug string) (*model.Repo, error) + func GetUser(c context.Context, id int64) (*model.User, error) + func GetUserLogin(c context.Context, login string) (*model.User, error) + func ToContext(c Setter, store Store) + func UpdateRepo(c context.Context, repo *model.Repo) error + func UpdateUser(c context.Context, user *model.User) error + type Setter interface + Set func(string, interface{}) + type Store interface + CreateRepo func(*model.Repo) error + CreateUser func(*model.User) error + DeleteRepo func(*model.Repo) error + DeleteUser func(*model.User) error + GetRepo func(int64) (*model.Repo, error) + GetRepoMulti func(...string) ([]*model.Repo, error) + GetRepoOwner func(string) ([]*model.Repo, error) + GetRepoSlug func(string) (*model.Repo, error) + GetUser func(int64) (*model.User, error) + GetUserLogin func(string) (*model.User, error) + UpdateRepo func(*model.Repo) error + UpdateUser func(*model.User) error + func FromContext(c context.Context) Store