-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add v2 endpoint to support old and new version event producers (#58)
- Loading branch information
Showing
8 changed files
with
50 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
mod push_events; | ||
mod push_events_v2; | ||
|
||
pub use push_events::*; | ||
pub use push_events_v2::*; |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
use crate::IdempotentEvent; | ||
use crate::IdempotentEventPrevious; | ||
use candid::{CandidType, Deserialize}; | ||
use serde::Serialize; | ||
|
||
#[derive(CandidType, Serialize, Deserialize, Clone, Debug)] | ||
pub struct PushEventsArgs { | ||
pub events: Vec<IdempotentEvent>, | ||
pub struct PushEventsArgsPrevious { | ||
pub events: Vec<IdempotentEventPrevious>, | ||
} |
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,8 @@ | ||
use crate::IdempotentEvent; | ||
use candid::{CandidType, Deserialize}; | ||
use serde::Serialize; | ||
|
||
#[derive(CandidType, Serialize, Deserialize, Clone, Debug)] | ||
pub struct PushEventsArgs { | ||
pub events: Vec<IdempotentEvent>, | ||
} |
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
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