We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fe96d5 commit f84b8c6Copy full SHA for f84b8c6
castle.go
@@ -20,6 +20,7 @@ var RiskEndpoint = "https://api.castle.io/v1/risk"
20
type Event struct {
21
EventType EventType
22
EventStatus EventStatus
23
+ Name string
24
}
25
26
// EventType is an enum defining types of event castle tracks
@@ -33,6 +34,7 @@ const (
33
34
EventTypeProfileReset EventType = "$profile_reset"
35
EventTypePasswordResetRequest EventType = "$password_reset_request"
36
EventTypeChallenge EventType = "$challenge"
37
+ EventTypeCustom EventType = "$custom"
38
)
39
40
// EventStatus is an enum defining the statuses for a given event.
@@ -138,7 +140,6 @@ func getRequestToken(r *http.Request) string {
138
140
139
141
142
type Request struct {
- Name string
143
Context *Context
144
Event Event
145
User User
0 commit comments