weversemedia

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: 21 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
	AddedBy         string
	BotID           string // only relevant for DMs

	WeverseChannelName string
	WeverseChannelID   int64

	ArtistFeedLastCheck time.Time
	ArtistFeedCheck     feed.Check `gorm:"embedded;embedded_prefix:artist_"`

	MediaFeedLastCheck time.Time
	MediaFeedCheck     feed.Check `gorm:"embedded;embedded_prefix:media_"`

	NoticeFeedLastCheck time.Time
	NoticeFeedCheck     feed.Check `gorm:"embedded;embedded_prefix:notice_"`

	MomentFeedLastCheck time.Time
	MomentFeedCheck     feed.Check `gorm:"embedded;embedded_prefix:moment_"`
}

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

	PostType   string
	PostID     int64
	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