Documentation ¶
Index ¶
Constants ¶
View Source
const TOKEN_SECRET = "Kia9012)f^#$$"
Variables ¶
This section is empty.
Functions ¶
func NewGoogleOAuthConfig ¶
func NewGoogleOAuthConfig(oauthCfg config.GoogleOAuth) *oauth2.Config
Types ¶
type APIHandler ¶
type APIHandler struct {
// contains filtered or unexported fields
}
func NewAPIHandler ¶
func NewAPIHandler( db db.Database, rateGetter finmind.TaiwanExchangeRateGetter, dataDir string, mailSender *mail.Sender, ) (*APIHandler, error)
type EmailAddress ¶
type EmailAddress struct {
Value string `json:"value"`
}
type GoogleHandler ¶
type GoogleHandler struct {
// contains filtered or unexported fields
}
func NewGoogleHandler ¶
func NewGoogleHandler(db db.Database, oauthCfg config.GoogleOAuth) *GoogleHandler
func (*GoogleHandler) Callback ¶
func (h *GoogleHandler) Callback(ctx *gin.Context)
func (*GoogleHandler) Login ¶
func (h *GoogleHandler) Login(ctx *gin.Context)
type PeopleResponse ¶
type PeopleResponse struct { EmailAddresses []EmailAddress `json:"emailAddresses"` Names []Name `json:"names"` Metadata Metadata `json:"metadata"` }
func (*PeopleResponse) GetDisplayName ¶
func (r *PeopleResponse) GetDisplayName() string
func (*PeopleResponse) GetEmail ¶
func (r *PeopleResponse) GetEmail() string
func (*PeopleResponse) GetID ¶
func (r *PeopleResponse) GetID() string
Click to show internal directories.
Click to hide internal directories.