type github.com/gotd/td/telegram/auth/qrlogin.Token
20 uses
github.com/gotd/td/telegram/auth/qrlogin (current package)
accept.go#L14: func AcceptQR(ctx context.Context, raw *tg.Client, t Token) (*tg.Authorization, error) {
qrlogin.go#L40: func (q QR) Export(ctx context.Context, exceptIDs ...int64) (Token, error) {
qrlogin.go#L47: return Token{}, errors.Wrap(err, "export")
qrlogin.go#L52: return Token{}, errors.Errorf("unexpected type %T", result)
qrlogin.go#L60: func (q QR) Accept(ctx context.Context, t Token) (*tg.Authorization, error) {
qrlogin.go#L139: show func(ctx context.Context, token Token) error,
qrlogin.go#L142: until := func(token Token) time.Duration {
token.go#L14: type Token struct {
token.go#L20: func ParseTokenURL(u string) (Token, error) {
token.go#L23: return Token{}, err
token.go#L27: return Token{}, errors.Errorf("unexpected scheme %q", parsed.Scheme)
token.go#L29: return Token{}, errors.Errorf("wrong path %q", parsed.Host)
token.go#L34: return Token{}, errors.New("token is empty")
token.go#L38: return Token{}, err
token.go#L45: func NewToken(token []byte, expires int) Token {
token.go#L46: return Token{
token.go#L53: func (t Token) Expires() time.Time {
token.go#L58: func (t Token) String() string {
token.go#L65: func (t Token) URL() string {
token.go#L70: func (t Token) Image(level qr.Level) (image.Image, error) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |