summaryrefslogtreecommitdiff
path: root/link_queue.go
AgeCommit message (Collapse)Author
2025-06-12all: refactoring, move brokenlinks code to its own packageShulhan
When two or more struct has the same prefix that means it is time to move it to group it. Also, we will group one command to one package in the future.
2025-06-05all: add option to scan pass resultShulhan
The brokenlinks command now have option "-past-result" that accept path to JSON file from the past result. If its set, the program will only scan the pages with broken links inside that report.
2025-06-01all: rename the program and repository into jarinkShulhan
Jarink is a program to help web administrator to maintains their website. Currently its provides a command to scan for brokenlinks.
2025-05-31all: use HTTP method HEAD to check external domainsShulhan
For link that is not from the same domain being scanned, use the HTTP method HEAD to minimize resources being transported.
2025-05-31all: refactoring the scan work without sync.MutexShulhan
When using goroutine to process a link, the result than passed to main goroutine through channel. The main goroutine then process the result one by one, check if its has been seen, error, or need to be scanned. In that way, we don't need mutex to guard if link has been seen or not.
2025-05-29all: parse only link to HTML pageShulhan
For link to image we can skip parsing it.
2025-05-27all: complete the first minimum working implementationShulhan
The current implementation at least cover 84% of the cases. Todo, * CLI for scan * add more test case for 100% coverage, including scan on invalid base URL, scan on invalid HTML page, scan on invalid href or src image