~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
20 lines · 220 B Raw History
package relay

import (
	"context"
	"net/http"
)

type Crawler interface {
	Crawl(hostname string)

	Forget(hostname string)
}

type Relay interface {
	Crawler

	Handler() http.Handler

	Run(ctx context.Context) error
}