mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 13:19:02 +00:00

Look, this will make the git history look funny, but trimming unnecessary depth from the source tree is a very necessary sanity-preserving measure when dealing with a super-modularized codebase like this one. While it makes the project configuration a bit less conventional, it will save you several clicks every time you jump between modules. Which you'll do a lot, because it's *modul*ar. The src/main/java convention makes a lot of sense for a non-modular project though. This ain't that.
22 lines
700 B
Java
22 lines
700 B
Java
package nu.marginalia.mqapi.crawling;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
import nu.marginalia.storage.model.FileStorageId;
|
|
|
|
import java.util.List;
|
|
|
|
/** A request to start a crawl */
|
|
@AllArgsConstructor
|
|
public class CrawlRequest {
|
|
/** (optional) Crawl spec(s) for sourcing domains to crawl. If not set,
|
|
* the EC_DOMAIN table will be consulted and domains with the corresponding
|
|
* node affinity will be used.
|
|
*/
|
|
public List<FileStorageId> specStorage;
|
|
|
|
/** File storage where the crawl data will be written. If it contains existing crawl data,
|
|
* this crawl data will be referenced for e-tags and last-mofified checks.
|
|
*/
|
|
public FileStorageId crawlStorage;
|
|
}
|