miniflux

package
v0.28.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID          = "miniflux"
	EndpointKey = "endpoint"
	ApikeyKey   = "api_key"
)
View Source
const (
	NewEntriesEventType = "new_entries"
	SaveEntryEventType  = "save_entry"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Miniflux

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

func GetClient added in v0.28.11

func GetClient() *Miniflux

func NewMiniflux

func NewMiniflux(endpoint, apiKey string) *Miniflux

func (*Miniflux) GetEntries

func (v *Miniflux) GetEntries(filter *rssClient.Filter) (*rssClient.EntryResultSet, error)

func (*Miniflux) GetFeeds

func (v *Miniflux) GetFeeds() (rssClient.Feeds, error)

func (*Miniflux) MarkAllAsRead added in v0.26.1

func (v *Miniflux) MarkAllAsRead() error

type WebhookCategory

type WebhookCategory struct {
	ID    int64  `json:"id"`
	Title string `json:"title"`
}

type WebhookEntry

type WebhookEntry struct {
	ID          int64        `json:"id"`
	UserID      int64        `json:"user_id"`
	FeedID      int64        `json:"feed_id"`
	Status      string       `json:"status"`
	Hash        string       `json:"hash"`
	Title       string       `json:"title"`
	URL         string       `json:"url"`
	CommentsURL string       `json:"comments_url"`
	Date        time.Time    `json:"published_at"`
	CreatedAt   time.Time    `json:"created_at"`
	ChangedAt   time.Time    `json:"changed_at"`
	Content     string       `json:"content"`
	Author      string       `json:"author"`
	ShareCode   string       `json:"share_code"`
	Starred     bool         `json:"starred"`
	ReadingTime int          `json:"reading_time"`
	Tags        []string     `json:"tags"`
	Feed        *WebhookFeed `json:"feed,omitempty"`
}

type WebhookEvent

type WebhookEvent struct {
	EventType string          `json:"event_type"`
	Feed      *WebhookFeed    `json:"feed"`
	Entries   []*WebhookEntry `json:"entries"`
	Entry     *WebhookEntry   `json:"entry"`
}

type WebhookFeed

type WebhookFeed struct {
	ID         int64            `json:"id"`
	UserID     int64            `json:"user_id"`
	CategoryID int64            `json:"category_id"`
	Category   *WebhookCategory `json:"category,omitempty"`
	FeedURL    string           `json:"feed_url"`
	SiteURL    string           `json:"site_url"`
	Title      string           `json:"title"`
	CheckedAt  time.Time        `json:"checked_at"`
}

Jump to

Keyboard shortcuts

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