-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit updates the vendored proto file to that found in version 0.249.0 of the Go SDK, and adds a couple of extra fields: - `api_version`, on app and datasource instance settings - `error_source`, on a data response. This can be customimsed by overriding the new `DataQueryError::source` method.
- Loading branch information
Showing
6 changed files
with
1,238 additions
and
88 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,23 @@ | ||
use std::fmt; | ||
|
||
/// The source of an error. | ||
/// | ||
/// This is used to indicate whether the error occurred in the plugin or downstream. | ||
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash)] | ||
#[non_exhaustive] | ||
pub enum ErrorSource { | ||
/// The error occurred in the plugin. | ||
#[default] | ||
Plugin, | ||
/// The error occurred downstream of the plugin. | ||
Downstream, | ||
} | ||
|
||
impl fmt::Display for ErrorSource { | ||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ||
match self { | ||
Self::Plugin => f.write_str("plugin"), | ||
Self::Downstream => f.write_str("downstream"), | ||
} | ||
} | ||
} |
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
Oops, something went wrong.