Documentation ¶
Index ¶
- Constants
- Variables
- func InitOauth(appId, appSecret string)
- type OauthUserService
- type UserOauthToken
- func (g *UserOauthToken) Delete(db *sql.DB) error
- func (t *UserOauthToken) Read(db sqlutil.Queryable) error
- func (t *UserOauthToken) ReadUser(db sqlutil.Queryable) (*user.User, error)
- func (t *UserOauthToken) SQLArgs() []interface{}
- func (t *UserOauthToken) Save(db sqlutil.Execable) error
- func (g *UserOauthToken) UnmarshalSQL(row sqlutil.Scannable) error
Constants ¶
View Source
const (
OauthServiceGithub = "github"
)
Variables ¶
View Source
var (
GithubOAuth *oauth2.Config
)
Functions ¶
Types ¶
type OauthUserService ¶
type UserOauthToken ¶
func UnmarshalTokens ¶
func UnmarshalTokens(rows *sql.Rows) ([]*UserOauthToken, error)
func UserOauthTokens ¶
func (*UserOauthToken) SQLArgs ¶
func (t *UserOauthToken) SQLArgs() []interface{}
func (*UserOauthToken) UnmarshalSQL ¶
func (g *UserOauthToken) UnmarshalSQL(row sqlutil.Scannable) error
turn a sql.Row result into a reset token pointer
Click to show internal directories.
Click to hide internal directories.