Skip to content

Commit

Permalink
Merge pull request #14 from goverland-labs/feature/pushes
Browse files Browse the repository at this point in the history
Describe push subject
  • Loading branch information
s-larionov authored Jul 25, 2023
2 parents 933028e + e4a2ae3 commit 9d6a740
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- Describe push subject

## [0.1.2] - 2023-07-18

### Changed
Expand Down
20 changes: 20 additions & 0 deletions events/inbox/push.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package inbox

import (
"github.com/google/uuid"

"github.com/goverland-labs/platform-events/events"
)

const (
SubjectPushCreated = "inbox.push.created"
)

type PushPayload struct {
Title string `json:"title"`
Body string `json:"body"`
ImageURL string `json:"image_url"`
UserID uuid.UUID `json:"user_id"`
}

type PushHandler = events.Handler[PushPayload]

0 comments on commit 9d6a740

Please sign in to comment.