Versions in this module Expand all Collapse all v1 v1.0.1 Sep 4, 2019 v1.0.0 Sep 4, 2019 Changes in this version + var SECURE_ERROR = errors.New("Length of the secure bytes must be more than 10") + type ConfigController interface + GetClientId func() string + GetClientSecret func() string + GetHost func() string + GetRandomBytesLength func() int + type GoogleAuthHandlers struct + CallbackHandler func(w http.ResponseWriter, r *http.Request) + LoginHandler func(w http.ResponseWriter, r *http.Request) + type GoogleOAuth struct + func NewGoogleOAuth(c ConfigController, r RedirectsController, u UserController) *GoogleOAuth + func (c *GoogleOAuth) GetGoogleAuthHandler() (*GoogleAuthHandlers, error) + type GoogleOauthUser struct + Email string + Name string + Picture string + type RedirectsController interface + GetCallbackUrl func() string + GetFailedRedirectUrl func(errCode int, err error) string + GetSuccessRedirectUrl func(token string) string + type UserController interface + UserInfoFn func(user *GoogleOauthUser) (string, error)