Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoogleAuth ¶
type GoogleAuth struct {
// contains filtered or unexported fields
}
func NewGoogleAuth ¶
func NewGoogleAuth(user string, options ...Option) *GoogleAuth
func (*GoogleAuth) Authenticate ¶
func (g *GoogleAuth) Authenticate(code string) (ok bool, err error)
Authenticate 生成验证code正确
func (*GoogleAuth) GetCode ¶
func (g *GoogleAuth) GetCode() (code string, err error)
func (*GoogleAuth) ProvisionURI ¶
func (g *GoogleAuth) ProvisionURI() (codeUrl string)
ProvisionURI 生成url
type Item ¶
type Item struct {
XMLName xml.Name `xml:"item"`
Autocomplete xml.Attr `xml:"autocomplete,attr"`
Valid string `xml:"valid,attr"`
Arg string `xml:"arg,attr"`
Title string `xml:"title"`
Subtitle string `xml:"subtitle"`
Icon string `xml:"icon"`
Text struct {
XMLName xml.Name `xml:"text"`
TextType xml.Attr `xml:"type,attr"`
Content string `xml:",innerxml"`
} `xml:"text"`
}
Click to show internal directories.
Click to hide internal directories.