-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.go
34 lines (30 loc) · 1013 Bytes
/
common.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package harvester
const (
Email = MetadataKey("email")
Company = MetadataKey("company")
GithubUser = MetadataKey("githubUser")
TwitterUser = MetadataKey("twitterUser")
PersonalSite = MetadataKey("personalSite")
Avatar = MetadataKey("avatar")
Name = MetadataKey("name")
Location = MetadataKey("location")
Timezone = MetadataKey("timezone")
Description = MetadataKey("description")
Language = MetadataKey("language")
KeybaseUser = MetadataKey("keybaseUser")
FacebookUser = MetadataKey("facebookUser")
HackernewsUser = MetadataKey("hackernewsUser")
RedditUser = MetadataKey("redditUser")
LinkedinUser = MetadataKey("linkedinUser")
BitcoinAddress = MetadataKey("bitcoinAddress")
)
type Pitchfork interface {
Harvest(d Data) error
Name() string
}
type MetadataKey string
type Metadata struct {
Value string `json:"value"`
Pitchfork string `json:"pitchfork"`
// TODO add more data like percentage of reliability
}