Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SECURE_ERROR = errors.New("Length of the secure bytes must be more than 10")
)
Functions ¶
This section is empty.
Types ¶
type ConfigController ¶
type GoogleAuthHandlers ¶
type GoogleAuthHandlers struct { LoginHandler func(w http.ResponseWriter, r *http.Request) CallbackHandler func(w http.ResponseWriter, r *http.Request) }
type GoogleOAuth ¶
type GoogleOAuth struct {
// contains filtered or unexported fields
}
func NewGoogleOAuth ¶
func NewGoogleOAuth(c ConfigController, r RedirectsController, u UserController) *GoogleOAuth
func (*GoogleOAuth) GetGoogleAuthHandler ¶
func (c *GoogleOAuth) GetGoogleAuthHandler() (*GoogleAuthHandlers, error)
type GoogleOauthUser ¶
type RedirectsController ¶
type UserController ¶
type UserController interface {
UserInfoFn(user *GoogleOauthUser) (string, error)
}
Click to show internal directories.
Click to hide internal directories.