-
Notifications
You must be signed in to change notification settings - Fork 486
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
Showing
9 changed files
with
109 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
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
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,27 @@ | ||
use fluvio_protocol::{Encoder, Decoder}; | ||
use fluvio_protocol::api::Request; | ||
|
||
use crate::mirroring::COMMON_MIRROR_VERSION; | ||
use crate::replication::leader::ReplicaOffsetRequest; | ||
|
||
use super::api_key::MirrorRemoteApiEnum; | ||
|
||
/// Edge offset | ||
#[derive(Decoder, Encoder, Default, Clone, Debug)] | ||
pub(crate) struct UpdateEdgeOffsetRequest(ReplicaOffsetRequest); | ||
|
||
impl From<ReplicaOffsetRequest> for UpdateEdgeOffsetRequest { | ||
fn from(offset: ReplicaOffsetRequest) -> Self { | ||
Self(offset) | ||
} | ||
} | ||
|
||
impl Request for UpdateEdgeOffsetRequest { | ||
const API_KEY: u16 = MirrorRemoteApiEnum::UpdateEdgeOffset as u16; | ||
const DEFAULT_API_VERSION: i16 = COMMON_MIRROR_VERSION; | ||
type Response = UpdateEdgeOffsetResponse; | ||
} | ||
|
||
// no content, this is one way request | ||
#[derive(Decoder, Encoder, Default, Debug)] | ||
pub struct UpdateEdgeOffsetResponse {} |