instagram

package
v0.0.0-...-9191452 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) feedgen.Feeder

New creates a new Instagram feed with passed options.

Types

type F

type F struct {
	FullName    string
	Bio         string
	Username    string
	Profile     string
	UserID      string
	UpdatedTime int
	Content     []content.C
}

F stores information about Instagram feed.

func (F) Entries

func (f F) Entries() []feedgen.Contenter

Entries returns feed entries.

func (F) ID

func (f F) ID() string

ID returns the id of the feed.

func (F) Icon

func (f F) Icon() string

Icon returns the icon url for the feed.

func (f F) Links() []feedgen.Link

Links returns the urls for the feed.

func (F) Subtitle

func (f F) Subtitle() string

Subtitle returns the subtitle of the feed.

func (F) Title

func (f F) Title() string

Title returns the title of the feed.

func (F) Updated

func (f F) Updated() time.Time

Updated retunrs the last time feed was updated.

type Option

type Option func(*F)

Option sets an option for the feed.

func WithContent

func WithContent(c []content.C) Option

WithContent sets the content for the feed.

func WithUpdated

func WithUpdated(t int) Option

WithUpdated sets the last updated time

func WithUser

func WithUser(fullName, bio, username, profile, userID string) Option

WithUser sets options about the user. fullName is the full name of user. bio is the bio of user. username is the username of user. profile is the url to the profile pic of user. userID is the id of user.

Jump to

Keyboard shortcuts

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