-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99dc33a
commit 2144dc5
Showing
6 changed files
with
135 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package events | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/NdoleStudio/httpsms/pkg/entities" | ||
) | ||
|
||
// UserAPIKeyRotated is raised when a user's API key is rotated | ||
const UserAPIKeyRotated = "user.api-key.rotated" | ||
|
||
// UserAPIKeyRotatedPayload stores the data for the UserAPIKeyRotated event | ||
type UserAPIKeyRotatedPayload struct { | ||
UserID entities.UserID `json:"user_id"` | ||
Email string `json:"email"` | ||
Timestamp time.Time `json:"timestamp"` | ||
Timezone string `json:"timezone"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters