dliter

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialog

type Dialog struct {
	Peer     tg.InputPeerClass
	Messages []int
}

type Iter

type Iter struct {
	// contains filtered or unexported fields
}

func New

func New(opts *Options) (*Iter, error)

func (*Iter) Fingerprint

func (iter *Iter) Fingerprint() string

func (*Iter) Finish

func (iter *Iter) Finish(_ context.Context, id int) error

func (*Iter) Finished

func (iter *Iter) Finished() map[int]struct{}

func (*Iter) Next

func (iter *Iter) Next(ctx context.Context) (*downloader.Item, error)

func (*Iter) SetFinished

func (iter *Iter) SetFinished(finished map[int]struct{})

func (*Iter) Total

func (iter *Iter) Total(_ context.Context) int

type Options

type Options struct {
	Pool             dcpool.Pool
	KV               kv.KV
	Template         string
	Include, Exclude []string
	Desc             bool
	Dialogs          [][]*Dialog
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL