gather

package
v0.0.0-...-1cf6d8d Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service handles domain operations for gathering image files from Reddit.

func NewService

func NewService(rootLogger zerolog.Logger, client *reddit.Client, submissionService *submission.Service, dataDir string, listPostOptions *reddit.ListPostOptions) *Service

NewService creates and initializes a new Service.

func (*Service) GatherTopImageSubmissions

func (s *Service) GatherTopImageSubmissions(ctx context.Context, subredditNames []string) error

GatherTopImageSubmissions gathers images for the top N submissions for the configured subreddits.

Jump to

Keyboard shortcuts

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