bountyforcode

package
v0.0.0-...-2c29924 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2014 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HtmlDir        string
	Store          *sessions.CookieStore
	SecretStoreKey string
)
View Source
var (
	GithubClientId     string
	GithubClientSecret string
	GithubRedirectUrl  string
	GithubAuthUrl      = "https://github.com/login/oauth/authorize"
	GithubTokenUrl     = "https://github.com/login/oauth/access_token"
	GithubConfig       *oauth.Config
)

Functions

func AdminHandler

func AdminHandler(w http.ResponseWriter, r *http.Request)

func BountiesHandler

func BountiesHandler(w http.ResponseWriter, r *http.Request)

func CoinbaseCallbackHandler

func CoinbaseCallbackHandler(w http.ResponseWriter, r *http.Request)

func CreateIssueHandler

func CreateIssueHandler(w http.ResponseWriter, r *http.Request)

func GetSessionUser

func GetSessionUser(r *http.Request) (u *User)

func InitGithub

func InitGithub()

func InitSessionStore

func InitSessionStore()

func IssuesHandler

func IssuesHandler(w http.ResponseWriter, r *http.Request)

func NewBountyHandler

func NewBountyHandler(w http.ResponseWriter, r *http.Request)

func ProjectIssuesHandler

func ProjectIssuesHandler(w http.ResponseWriter, r *http.Request)

func RegisterAuthorizeHandler

func RegisterAuthorizeHandler(w http.ResponseWriter, r *http.Request)

func RegisterHandler

func RegisterHandler(w http.ResponseWriter, r *http.Request)

func RenderJson

func RenderJson(w http.ResponseWriter, page interface{})

func SetSessionUserId

func SetSessionUserId(w http.ResponseWriter, r *http.Request, user *User)

func ShowIssueHandler

func ShowIssueHandler(w http.ResponseWriter, r *http.Request)

func UserHandler

func UserHandler(w http.ResponseWriter, r *http.Request)

func UserSessionHandler

func UserSessionHandler(w http.ResponseWriter, r *http.Request)

Types

type StatusResponse

type StatusResponse struct {
	Status  bool   `json:"status"`
	Message string `json:"message"`
}

type UserSmall

type UserSmall struct {
	Id             int    `json:"id"`
	GitHubUsername string `json:"github_username"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL