MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / HTMLSource

Interface HTMLSource

internal/fab/scraper.go:30–32  ·  view source on GitHub ↗

HTMLSource returns a rendered HTML document. This package keeps parsing separate from transport so browser-backed and non-browser sources can be swapped without touching the retry or parser logic.

Source from the content-addressed store, hash-verified

28// This package keeps parsing separate from transport so browser-backed and
29// non-browser sources can be swapped without touching the retry or parser logic.
30type HTMLSource interface {
31 Fetch(ctx context.Context) (string, error)
32}
33
34// HTTPSource is a minimal transport that fetches the raw homepage over HTTP.
35// It is suitable for wiring and tests, but it does not execute client-side JS.

Callers 1

fetchDocumentMethod · 0.65

Implementers 2

BrowserSourceinternal/fab/browser_source.go
HTTPSourceinternal/fab/scraper.go

Calls

no outgoing calls

Tested by

no test coverage detected