Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
Tag partly implements Taggable.
func (*Tag) GetConfigId ¶
GetConfigId implements Taggable.GetConfigId.
func (*Tag) GetScraperId ¶
GetScraperId implements Taggable.GetScraperId.
type Taggable ¶
type Taggable interface { // GetConfigId returns the ID of the config.Config instance it was tagged by. GetConfigId() string // GetScraperId returns the id of the scraper.Scraper it was tagged by. GetScraperId() string // SetTag sets the Tag which is used to identify its source. SetTag(t *Tag) }
Taggable allows a type to tag itself by storing a config.Config ID and a scraper.Scraper ID, these IDs allow processes to identify the source of the tagged type.
Click to show internal directories.
Click to hide internal directories.