syncer

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedSyncer

type FeedSyncer interface {
	SyncFeed(id uuid.UUID) error
	StopPolling(id uuid.UUID) error
	Poll(mode Mode)
}

type MediaData

type MediaData struct {
	URL             string
	Width           int
	Height          int
	Medium          string
	Alt             string
	HasExplicitDims bool
}

MediaData represents our target structure

type MediaResolverAffinity added in v0.0.18

type MediaResolverAffinity int
const (
	MediaResolverPreferenceDefault MediaResolverAffinity = iota
	MediaResolverAffinityEnclosure
)

type Mode added in v0.0.7

type Mode string
const (
	ModeIngester              Mode = "ingester"
	ModeThinker               Mode = "thinker"
	ModeThinkerFixer          Mode = "thinker-fixer"
	ModeThinkerUpdateLLMModel Mode = "thinker-update-llm-model"
)

type Syncer

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

func New

func New(ctx context.Context, cfg *config.Config, repo database.Repository) (*Syncer, error)

func (*Syncer) Poll

func (s *Syncer) Poll(mode Mode)

func (*Syncer) StopPolling

func (s *Syncer) StopPolling(id uuid.UUID) error

func (*Syncer) SyncFeed

func (s *Syncer) SyncFeed(id uuid.UUID) error

Jump to

Keyboard shortcuts

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