ingestmaterialize

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	BatchSize int
}

type Repository

type Repository interface {
	MaterializeArticleHeaderPosters(ctx context.Context, limit int) (*pgindex.IndexerPosterMaterializationResult, error)
	RefreshCrosspostPopularity(ctx context.Context, limit int) (*pgindex.IndexerCrosspostPopularityRefreshResult, error)
}

type Service

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

func NewService

func NewService(repo Repository, opts Options) *Service

func (*Service) RunCrosspostPopularityOnceWithMetrics

func (s *Service) RunCrosspostPopularityOnceWithMetrics(ctx context.Context) (map[string]any, error)

func (*Service) RunPostersOnceWithMetrics

func (s *Service) RunPostersOnceWithMetrics(ctx context.Context) (map[string]any, error)

Jump to

Keyboard shortcuts

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