-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstructs.go
36 lines (31 loc) · 969 Bytes
/
structs.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
package main
import "time"
type Offer struct {
Azienda string `json:"azienda"`
Email string `json:"email"`
Sede string `json:"sede"`
Ruolo string `json:"ruolo"`
Salario string `json:"salario"`
Descrizione string `json:"descrizione"`
Competenze string `json:"competenze"`
Benefits string `json:"benefits"`
FullTime bool `json:"fulltime"`
PartTime bool `json:"parttime"`
ReCaptchaToken string `json:"recaptcha_token"`
}
type ReCaptchaConfig struct {
SiteKey string
Secret string
ApiEndpoint string
}
type SiteVerifyResponse struct {
Success bool `json:"success"`
Score float64 `json:"score"`
Action string `json:"action"`
ChallengeTS time.Time `json:"challenge_ts"`
Hostname string `json:"hostname"`
ErrorCodes []string `json:"error-codes"`
}
type SiteVerifyRequest struct {
RecaptchaResponse string `json:"g-recaptcha-response"`
}