Documentation
¶
Index ¶
- type GroupStats
- type NNTPAdapter
- func (a *NNTPAdapter) GroupStats(ctx context.Context, group string) (GroupStats, error)
- func (a *NNTPAdapter) ID() string
- func (a *NNTPAdapter) XOver(ctx context.Context, group string, from, to int64) ([]OverviewHeader, error)
- func (a *NNTPAdapter) XOverWithProvider(ctx context.Context, group string, from, to int64) ([]OverviewHeader, string, error)
- type Options
- type OverviewHeader
- type Service
- func (s *Service) RunBackfillOnce(ctx context.Context) error
- func (s *Service) RunBackfillOnceWithMetrics(ctx context.Context) (map[string]any, error)
- func (s *Service) RunLatestOnce(ctx context.Context) error
- func (s *Service) RunLatestOnceWithMetrics(ctx context.Context) (map[string]any, error)
- func (s *Service) RunOnce(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupStats ¶
type NNTPAdapter ¶
type NNTPAdapter struct {
// contains filtered or unexported fields
}
func NewNNTPAdapter ¶
func NewNNTPAdapter(p nntpClient) *NNTPAdapter
func (*NNTPAdapter) GroupStats ¶
func (a *NNTPAdapter) GroupStats(ctx context.Context, group string) (GroupStats, error)
func (*NNTPAdapter) ID ¶
func (a *NNTPAdapter) ID() string
func (*NNTPAdapter) XOver ¶
func (a *NNTPAdapter) XOver(ctx context.Context, group string, from, to int64) ([]OverviewHeader, error)
func (*NNTPAdapter) XOverWithProvider ¶ added in v0.8.0
func (a *NNTPAdapter) XOverWithProvider(ctx context.Context, group string, from, to int64) ([]OverviewHeader, string, error)
type OverviewHeader ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) RunBackfillOnce ¶
backfill mode walks backward from the most recent known boundary.
func (*Service) RunBackfillOnceWithMetrics ¶ added in v0.7.0
func (*Service) RunLatestOnce ¶
latest mode prioritizes the head of the group and continues forward.
func (*Service) RunLatestOnceWithMetrics ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.