-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
46 lines (36 loc) · 1.03 KB
/
types.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
35
36
37
38
39
40
41
42
43
44
45
46
package hackerone
type Programs struct {
ProgramsData []*ProgramsData `json:"data"`
Links *NextPrograms `json:"links"`
}
type ProgramsData struct {
ProgramsAttributes *ProgramsAttributes `json:"attributes"`
}
type ProgramsAttributes struct {
Handle string `json:"handle"`
State string `json:"state"`
OffersBounty bool `json:"offers_bounties"`
}
type NextPrograms struct {
Next string `json:"next"`
}
type Scope struct {
ProgramData []*ScopeData `json:"data"`
}
// type ProgramData struct {
// Relationships *Relationship `json:"relationships"`
// }
// // type Relationship struct {
// // StructuredScopes *StructuredScopes `json:"structured_scopes"`
// // }
// // type StructuredScopes struct {
// // ScopeData []*ScopeData `json:"data"`
// // }
type ScopeData struct {
Attributes *ScopeAttributes `json:"attributes"`
}
type ScopeAttributes struct {
AssetType string `json:"asset_type"`
Identifier string `json:"asset_identifier"`
EligibleForBounty bool `json:"eligible_for_bounty"`
}