type github.com/gotd/td/telegram/downloader.Builder
40 uses
github.com/gotd/td/telegram/downloader (current package)
builder.go#L16: type Builder struct {
builder.go#L45: func newBuilder(downloader *Downloader, schema schema) *Builder {
builder.go#L46: return &Builder{
builder.go#L54: func (b *Builder) WithThreads(threads int) *Builder {
builder.go#L65: func (b *Builder) WithRetryHandler(handler RetryHandler) *Builder {
builder.go#L92: func (b *Builder) WithVerify(verify bool) *Builder {
builder.go#L108: func (b *Builder) WithOffset(offset int64) *Builder {
builder.go#L116: func (b *Builder) WithSize(size int64) *Builder {
builder.go#L124: func (b *Builder) WithProgress(progress ProgressFunc) *Builder {
builder.go#L131: func (b *Builder) validate() error {
builder.go#L144: func (b *Builder) prepareMaster(m master, allowCDN bool) *Builder {
builder.go#L155: func (b *Builder) prepareCDNPath(m master, provider CDNProvider) *Builder {
builder.go#L177: func (b *Builder) shouldAllowCDN() bool {
builder.go#L193: func (b *Builder) prepare() (_ *Builder, closeCDN func() error, err error) {
builder.go#L222: func (b *Builder) reader() *reader {
builder.go#L242: func (b *Builder) start(ctx context.Context) context.Context {
builder.go#L253: func (b *Builder) sink() sink {
builder.go#L263: func (b *Builder) Stream(ctx context.Context, output io.Writer) (_ tg.StorageFileTypeClass, err error) {
builder.go#L280: func (b *Builder) Parallel(ctx context.Context, output io.WriterAt) (_ tg.StorageFileTypeClass, err error) {
builder.go#L302: func (b *Builder) ToPath(ctx context.Context, path string) (_ tg.StorageFileTypeClass, err error) {
downloader.go#L82: func (d *Downloader) Download(rpc Client, location tg.InputFileLocationClass) *Builder {
downloader.go#L93: func (d *Downloader) Web(rpc Client, location tg.InputWebFileLocationClass) *Builder {
refresh.go#L77: func (b *Builder) WithRefresh(refresh RefreshFunc) *Builder {
scheduler.go#L245: func (b *Builder) WithScheduler(s *Scheduler) *Builder {
verify_local.go#L26: func (b *Builder) Verify(ctx context.Context, r io.ReaderAt, size int64) (verified int64, err error) {
github.com/gotd/td/telegram
download.go#L234: func (c *Client) Download(location tg.InputFileLocationClass) *downloader.Builder {
download.go#L246: func (c *Client) DownloadVia(invoker tg.Invoker, location tg.InputFileLocationClass) *downloader.Builder {
download.go#L251: func (c *Client) DownloadWeb(location tg.InputWebFileLocationClass) *downloader.Builder {
download.go#L256: func (c *Client) DownloadWebVia(invoker tg.Invoker, location tg.InputWebFileLocationClass) *downloader.Builder {
 |
The pages are generated with Golds v0.8.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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |