-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
55 lines (43 loc) · 768 Bytes
/
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
47
48
49
50
51
52
53
54
55
// types.go
package main
import (
"time"
)
// TLSReport is one single run for all sites
type TLSReport struct {
SSLLabs string
Date time.Time
Sites []TLSSite
}
const (
// 1, 2, 3 are the main categories 1=green, 2=yellow, 3=red
CatGreen = 1 + iota
CatYellow
CatRed
// 1 is for correct https w/ redirection, 2 is https&http, 3 is http only
TypeError = 1 + iota
TypeHTTPSok
TypeHTTPSnok
TypeHTTP
)
// TLSSite is a summary for each site
type TLSSite struct {
Name string
Contract string
Grade string
CryptCheck string
Mozilla string
DefKey bool
DefSig bool
DefCA bool
IsExpired bool
PathIssues bool
Protocols string
PFS bool
OCSP bool
HSTS int64
Sweet32 bool
Type int
CatHTTP int
CatTLS int
}