Documentation ¶
Index ¶
- type OAuth
- func (o OAuth) APIGet(cred *oauth.Credentials, urlStr string, form url.Values, data interface{}) error
- func (o OAuth) GetUserInfo(credentials *oauth.Credentials) (model.User, error)
- func (o *OAuth) Signin() echo.HandlerFunc
- func (o *OAuth) Singout() echo.HandlerFunc
- func (o *OAuth) TwitterCallback() echo.HandlerFunc
- type Response
- type UserHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth ¶
type OAuth struct {
// contains filtered or unexported fields
}
OAuth oauth
func NewOAuthHandler ¶
NewOAuthHandler new oauth handler
func (OAuth) APIGet ¶
func (o OAuth) APIGet(cred *oauth.Credentials, urlStr string, form url.Values, data interface{}) error
APIGet call get twitter api
func (OAuth) GetUserInfo ¶
GetUserInfo get twitter user info
func (*OAuth) TwitterCallback ¶
func (o *OAuth) TwitterCallback() echo.HandlerFunc
TwitterCallback twitter callback endpoint
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
UserHandler user handler strcut
func (*UserHandler) GetUser ¶
func (u *UserHandler) GetUser() echo.HandlerFunc
GetUser get user info
Click to show internal directories.
Click to hide internal directories.