newsfeed

package
v3.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elem

Elem is a newsfeed item.

type Iterator

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

Iterator is a newsfeed iterator.

func NewIterator

func NewIterator(client *api.VK, params func(b *params.NewsfeedGetBuilder)) *Iterator

NewIterator creates new Iterator.

func (*Iterator) Err

func (m *Iterator) Err() error

Err returns the error, if any, that was encountered during iteration.

func (*Iterator) Next

func (m *Iterator) Next(ctx context.Context) bool

Next prepares the next message for reading with the Value method. It returns true on success, or false if there is no news anymore or an error happened while preparing it. Err should be consulted to distinguish between the two cases.

func (*Iterator) Value

func (m *Iterator) Value() Elem

Value returns current item.

Jump to

Keyboard shortcuts

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