Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update proto #129

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proto
Submodule proto updated 1 files
+1 −6 s2/v1alpha/s2.proto
7 changes: 1 addition & 6 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,15 +409,10 @@ pub struct BasinInfo {
pub state: i32,
}
/// Headers add structured information to a record as name-value pairs.
///
/// Header names cannot be empty, with the exception of "command messages" that are interpreted by S2. A command message is signalled by a sole header with empty name. The header value represents an operation, and the record body acts as a payload for the command. S2 client SDKs provide high-level APIs for command messages, and advanced users may also create them directly.
///
/// Valid operations are as follows:
/// - `fence` with an upto 16 byte payload to set a fencing token. An empty payload clears the token. Fencing is strongly consistent, and subsequent appends that specify a fencing token will be rejected if it does not match.
/// - `trim` with exactly 8 big-endian bytes as payload representing the desired earliest sequence number. This sequence number is only allowed to advance, and any regression will be ignored. Trimming is eventually consistent, and trimmed records may be visible for a brief period.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Header {
/// Header name blob.
/// The name cannot be empty, with the exception of an S2 command record.
#[prost(bytes = "bytes", tag = "1")]
pub name: ::prost::bytes::Bytes,
/// Header value blob.
Expand Down
Loading