instagramstories

package
v0.0.0-...-dade96f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: AGPL-3.0-or-later Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	gorm.Model
	GuildID          string
	ChannelOrUserID  string // UserID in case of DMs
	DM               bool
	DisablePostFeed  bool `gorm:"default:false"`
	DisableStoryFeed bool `gorm:"default:false"`
	AddedBy          string
	BotID            string // only relevant for DMs

	InstagramUsername  string
	InstagramAccountID string

	LastCheck time.Time
	feed.Check

	StoriesLastCheck time.Time
	StoriesCheck     feed.Check `gorm:"embedded;embedded_prefix:stories_"`
}

Entry model maintained by Processor

func (*Entry) TableName

func (*Entry) TableName() string

type Plugin

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

func (*Plugin) Interval

func (p *Plugin) Interval() time.Duration

func (*Plugin) Localizations

func (p *Plugin) Localizations() []interfaces.Localization

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Run

func (p *Plugin) Run(run *common.Run) (err error)

func (*Plugin) Start

func (p *Plugin) Start(params common.StartParameters) error

func (*Plugin) Stop

func (p *Plugin) Stop(params common.StopParameters) error

type Post

type Post struct {
	gorm.Model
	EntryID uint

	PostID     string
	MessageIDs pq.StringArray `gorm:"type:varchar[]"`
}

func (*Post) TableName

func (*Post) TableName() string

Jump to

Keyboard shortcuts

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