-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Align ProviderState and ProviderEvent with Spec
Signed-off-by: Fabrizio Demaria <[email protected]>
- Loading branch information
1 parent
b900743
commit ba7c072
Showing
17 changed files
with
371 additions
and
245 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import Foundation | ||
|
||
public let providerEventDetailsKeyProvider = "Provider" | ||
public let providerEventDetailsKeyClient = "Client" | ||
public let providerEventDetailsKeyError = "Error" | ||
|
||
public enum ProviderEvent: String, CaseIterable { | ||
case ready = "PROVIDER_READY" | ||
case error = "PROVIDER_ERROR" | ||
case configurationChanged = "PROVIDER_CONFIGURATION_CHANGED" | ||
case stale = "PROVIDER_STALE" | ||
case notReady = "PROVIDER_NOT_READY" | ||
public enum ProviderEvent: Equatable { | ||
case ready | ||
case error(errorCode: ErrorCode? = nil, message: String? = nil) | ||
case configurationChanged | ||
case stale | ||
case reconciling | ||
case contextChanged | ||
} |
Oops, something went wrong.