Documentation ¶
Index ¶
- Variables
- func EnsureAuth(session sessions.Session, r render.Render, req *http.Request, ...)
- func PreventReauth(session sessions.Session, r render.Render)
- type GithubIntegration
- type ProjectService
- type ResponseCtx
- type Service
- type UserService
- func (us UserService) Authenticate(user models.User, req *http.Request, rw http.ResponseWriter, r render.Render)
- func (us UserService) Create(user models.User, req *http.Request, rw http.ResponseWriter, r render.Render)
- func (us UserService) Dashboard(current_user models.User, r render.Render)
- func (us UserService) Edit(currentUser models.User, params martini.Params, r render.Render)
- func (us UserService) Register(router martini.Router)
- func (us UserService) SignIn(req *http.Request, r render.Render)
- func (us UserService) SignOut(w http.ResponseWriter, req *http.Request, r render.Render)
- func (us UserService) SignUp(r render.Render)
- func (us UserService) SyncHeartbeats(currentUser models.User, r render.Render, req *http.Request)
- func (us UserService) Update(user models.User, req *http.Request, r render.Render)
- type WebhookService
Constants ¶
This section is empty.
Variables ¶
View Source
var Services []Service = []Service{ new(UserService), new(WebhookService), new(ProjectService), }
Functions ¶
func EnsureAuth ¶
Types ¶
type GithubIntegration ¶
type GithubIntegration struct {
// contains filtered or unexported fields
}
func NewGithubIntegration ¶
func NewGithubIntegration() GithubIntegration
func (GithubIntegration) HandleWebhookEvent ¶
func (g GithubIntegration) HandleWebhookEvent(payload []byte)
type ProjectService ¶
type ProjectService struct{}
func (ProjectService) List ¶
func (ps ProjectService) List(currentUser models.User, r render.Render)
func (ProjectService) New ¶
func (ps ProjectService) New(r render.Render)
func (ProjectService) Register ¶
func (ps ProjectService) Register(router martini.Router)
type ResponseCtx ¶
type ResponseCtx struct { Error bool ErrMessage string Vars map[string]interface{} CurrentUser models.User models.User }
func ErrorResponse ¶
func ErrorResponse(errMsg string, currentUser models.User, vars ...map[string]interface{}) ResponseCtx
func SuccessResponse ¶
func SuccessResponse(currentUser models.User, vars ...map[string]interface{}) ResponseCtx
type UserService ¶
type UserService struct{}
func (UserService) Authenticate ¶
func (us UserService) Authenticate(user models.User, req *http.Request, rw http.ResponseWriter, r render.Render)
func (UserService) Create ¶
func (us UserService) Create(user models.User, req *http.Request, rw http.ResponseWriter, r render.Render)
func (UserService) Dashboard ¶
func (us UserService) Dashboard(current_user models.User, r render.Render)
func (UserService) Register ¶
func (us UserService) Register(router martini.Router)
func (UserService) SignOut ¶
func (us UserService) SignOut(w http.ResponseWriter, req *http.Request, r render.Render)
func (UserService) SignUp ¶
func (us UserService) SignUp(r render.Render)
func (UserService) SyncHeartbeats ¶
Click to show internal directories.
Click to hide internal directories.