You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
310 B
20 lines
310 B
package qrlogin |
|
|
|
import ( |
|
"context" |
|
|
|
"github.com/gotd/td/clock" |
|
) |
|
|
|
// Options of QR. |
|
type Options struct { |
|
Migrate func(ctx context.Context, dcID int) error |
|
Clock clock.Clock |
|
} |
|
|
|
func (o *Options) setDefaults() { |
|
// It's okay to use zero value Migrate. |
|
if o.Clock == nil { |
|
o.Clock = clock.System |
|
} |
|
}
|
|
|