Documentation ¶
Index ¶
- Variables
- func CheckSession(r *http.Request, paste_id string) (bool, error)
- func ClearAppSession(w http.ResponseWriter)
- func ClearOauthCookie(w http.ResponseWriter)
- func ExtraSugar(f http.HandlerFunc) http.HandlerFunc
- func Http404(w http.ResponseWriter, r *http.Request)
- func InitAppSession(w http.ResponseWriter, r *http.Request, userID string, refresh bool) error
- func InitRedisPool(addr string)
- func OAuthConfigDance(provider string, redirectURL string, scopes ...string) (*oauth2.Config, error)
- func ProcessForm(r *http.Request) error
- func SC() *securecookie.SecureCookie
- func SessionStore() *sessions.CookieStore
- func UpdateSession(w http.ResponseWriter, r *http.Request, paste_id string, remove bool) error
- func ValidateCaptcha(recaptchaResponse string, remoteip string, action string) (float64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RedisPool *redis.Pool
Functions ¶
func ClearAppSession ¶
func ClearAppSession(w http.ResponseWriter)
func ClearOauthCookie ¶
func ClearOauthCookie(w http.ResponseWriter)
func ExtraSugar ¶
func ExtraSugar(f http.HandlerFunc) http.HandlerFunc
http://andyrees.github.io/2015/your-code-a-mess-maybe-its-time-to-bring-in-the-decorators/
func InitAppSession ¶
func InitRedisPool ¶
func InitRedisPool(addr string)
func OAuthConfigDance ¶
func ProcessForm ¶
func SC ¶
func SC() *securecookie.SecureCookie
func SessionStore ¶
func SessionStore() *sessions.CookieStore
func UpdateSession ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.