Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(r Repository, prerenderConfig configuration.PrerenderConfig, storageConfig configuration.StorageConfig) *service
Types ¶
type Repository ¶
type Service ¶
type Service interface { GetLinksForRender() ([]string, error) GetUrlsFromSitemaps() ([]string, error) GetUrlsFromLinksList() ([]string, error) PreparePages(links []string) ([]*models.PageData, error) GetPageBody(ctx context.Context, p *models.PageData) error RenderPages(ctx context.Context, pages []*models.PageData, maxWorkers int) error RenderPage(ctx context.Context, page *models.PageData, num int, total int) error PrepareRenderReport(pages []*models.PageData, d time.Duration, procs int) string // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.