miniflux

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package miniflux implements the Miniflux adapter for the reader capability.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() reader.Service

func NewWithClient

func NewWithClient(client client) reader.Service

Types

type Adapter

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

func (*Adapter) CreateFeed

func (a *Adapter) CreateFeed(ctx context.Context, feedURL string) (*ability.Feed, error)

func (*Adapter) ListEntries

func (*Adapter) ListFeeds

func (*Adapter) MarkEntryRead

func (a *Adapter) MarkEntryRead(ctx context.Context, id int64) error

func (*Adapter) MarkEntryUnread

func (a *Adapter) MarkEntryUnread(ctx context.Context, id int64) error

func (*Adapter) StarEntry

func (*Adapter) StarEntry(ctx context.Context, _ int64) error

func (*Adapter) UnstarEntry

func (*Adapter) UnstarEntry(ctx context.Context, _ int64) error

type Webhook

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

Webhook implements ability.WebhookConverter for Miniflux RSS reader webhooks. It validates HMAC-SHA256 signatures and converts Miniflux webhook payloads into DataEvent records for the pipeline engine.

func NewWebhook

func NewWebhook() *Webhook

NewWebhook creates a Webhook that reads the HMAC secret from the miniflux provider config lazily at verification time.

func (*Webhook) Convert

func (*Webhook) Convert(body []byte, _ map[string]string) ([]types.DataEvent, error)

Convert transforms the raw Miniflux webhook body into one or more DataEvent records. new_entries produces a single batch event with all entries in the Data KV. save_entry produces a single event with the saved entry in the Data KV.

func (*Webhook) VerifySignature

func (w *Webhook) VerifySignature(headers map[string]string, body []byte) error

VerifySignature validates the HMAC-SHA256 signature from the X-Miniflux-Signature header. The secret is read from provider config at verification time via getSecret.

func (*Webhook) WebhookPath

func (*Webhook) WebhookPath() string

WebhookPath returns the URL path segment for Miniflux webhooks. The full URL is /webhook/provider/miniflux/events.

Jump to

Keyboard shortcuts

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