This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
forked from raystack/dex
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(alert): general alert apis for firehose and optimus
- Loading branch information
1 parent
d27bef1
commit 385be84
Showing
4 changed files
with
111 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package alert | ||
|
||
import ( | ||
shieldv1beta1rpc "buf.build/gen/go/gotocompany/proton/grpc/go/gotocompany/shield/v1beta1/shieldv1beta1grpc" | ||
sirenv1beta1grpc "buf.build/gen/go/gotocompany/proton/grpc/go/gotocompany/siren/v1beta1/sirenv1beta1grpc" | ||
) | ||
|
||
type AlertService struct { | ||
sirenClient sirenv1beta1grpc.SirenServiceClient | ||
shieldClient shieldv1beta1rpc.ShieldServiceClient | ||
} | ||
|
||
func NewAlertService( | ||
sirenClient sirenv1beta1grpc.SirenServiceClient, | ||
shieldClient shieldv1beta1rpc.ShieldServiceClient, | ||
) *AlertService { | ||
return &AlertService{ | ||
sirenClient: sirenClient, | ||
shieldClient: shieldClient, | ||
} | ||
} |
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