Skip to content

Commit f84b8c6

Browse files
committed
move to event
1 parent 0fe96d5 commit f84b8c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

castle.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ var RiskEndpoint = "https://api.castle.io/v1/risk"
2020
type Event struct {
2121
EventType EventType
2222
EventStatus EventStatus
23+
Name string
2324
}
2425

2526
// EventType is an enum defining types of event castle tracks
@@ -33,6 +34,7 @@ const (
3334
EventTypeProfileReset EventType = "$profile_reset"
3435
EventTypePasswordResetRequest EventType = "$password_reset_request"
3536
EventTypeChallenge EventType = "$challenge"
37+
EventTypeCustom EventType = "$custom"
3638
)
3739

3840
// EventStatus is an enum defining the statuses for a given event.
@@ -138,7 +140,6 @@ func getRequestToken(r *http.Request) string {
138140
}
139141

140142
type Request struct {
141-
Name string
142143
Context *Context
143144
Event Event
144145
User User

0 commit comments

Comments
 (0)