Versions in this module Expand all Collapse all v0 v0.3.1 Oct 26, 2015 v0.3.0 Sep 17, 2015 Changes in this version + func Register() + type Gogs struct + Open bool + Secret string + URL string + func New(url string, secret string, open bool) *Gogs + func (r *Gogs) Activate(user *model.User, repo *model.Repo, link string) error + func (r *Gogs) Authorize(res http.ResponseWriter, req *http.Request) (*model.Login, error) + func (r *Gogs) Deactivate(user *model.User, repo *model.Repo, link string) error + func (r *Gogs) GetHost() string + func (r *Gogs) GetKind() string + func (r *Gogs) GetRepos(user *model.User) ([]*model.Repo, error) + func (r *Gogs) GetScript(user *model.User, repo *model.Repo, hook *model.Hook) ([]byte, error) + func (r *Gogs) GetToken(user *model.User) (*model.Token, error) + func (r *Gogs) OpenRegistration() bool + func (r *Gogs) ParseHook(req *http.Request) (*model.Hook, error)