Versions in this module Expand all Collapse all v0 v0.1.1 Dec 7, 2018 v0.1.0 Dec 6, 2018 Changes in this version + type AuthConfig struct + JWT struct{ ... } + OAuth struct{ ... } + Prefix string + Project string + type AuthMiddleware struct + Config AuthConfig + func NewAuthMiddleware(handler http.Handler, config AuthConfig, ...) *AuthMiddleware + func (s *AuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) + type CloudSQLConfig struct + DbName string + Instance string + Password string + User string + type DecryptedToken struct + Claims jwt.Claims + Session UserSession + type Gogae struct + Auth *AuthMiddleware + Db *sql.DB + Log *logrus.Logger + Router *httprouter.Router + func InitGogae(config GogaeConfig, ...) (Gogae, error) + func (g *Gogae) Start() + func (g Gogae) Handle(f Handler) func(w http.ResponseWriter, r *http.Request, params httprouter.Params) + type GogaeConfig struct + AuthConfig AuthConfig + CloudSQLConfig *CloudSQLConfig + type Handler func(context RequestContext) (interface{}, int, error) + type RequestContext struct + Client *http.Client + JWTToken *DecryptedToken + Log *logrus.Entry + Params httprouter.Params + Request *http.Request + UserDataJson string + func (r RequestContext) Redirect(target string, code int) (interface{}, int, error) + type UserInfo struct + Email string + Hd string + Id string + Link string + Picture string + VerifiedEmail bool + type UserSession struct + AuthMiddleware *AuthMiddleware + Token *oauth2.Token + UserData string