Documentation
¶
Index ¶
Constants ¶
View Source
const ( // URLTodoSubject represent the subject used by the crawler process to read the URL to crawl URLTodoSubject = "url.todo" // URLFoundSubject represent the subject used by the scheduler process to read the URL to schedule URLFoundSubject = "url.found" // ResourceSubject represent the subject used by the persister process to store the resource body ResourceSubject = "resource" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceDto ¶
type ResourceDto struct { URL string `json:"url"` Body string `json:"body"` Title string `json:"title"` Time time.Time `json:"time"` }
ResourceDto represent a resource as given by the API
type ResourceMsg ¶
ResourceMsg represent the body of a crawled resource
type URLFoundMsg ¶
type URLFoundMsg struct {
URL string `json:"url"`
}
URLFoundMsg represent a found URL
type URLTodoMsg ¶
type URLTodoMsg struct {
URL string `json:"url"`
}
URLTodoMsg represent an URL to crawl
Click to show internal directories.
Click to hide internal directories.