Skip to content

Commit

Permalink
Merge pull request #40 from ARGOeu/devel
Browse files Browse the repository at this point in the history
Version 1.2.0
  • Loading branch information
themiszamani authored Aug 1, 2022
2 parents 8272a41 + 300bb91 commit e72c3ba
Show file tree
Hide file tree
Showing 29 changed files with 1,873 additions and 860 deletions.
4 changes: 3 additions & 1 deletion ams-push-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Name: ams-push-server
Summary: ARGO Ams Push Server.
Version: 1.0.1
Version: 1.2.0
Release: 1%{?dist}
License: ASL 2.0
Buildroot: %{_tmppath}/%{name}-buildroot
Expand Down Expand Up @@ -57,6 +57,8 @@ go clean
%attr(0644,root,root) /usr/lib/systemd/system/ams-push-server.service

%changelog
* Fri Jul 29 2022 Agelos Tsalapatis <agelos.tsal@gmail.com> 1.2.0-1%{?dist}
- Release of ams-push-server 1.2.0
* Tue Oct 5 2021 Agelos Tsalapatis <agelos.tsal@gmail.com> 1.0.1-1%{?dist}
- Release of ams-push-server 1.0.1
* Wed May 27 2020 Agelos Tsalapatis <agelos.tsal@gmail.com> 1.0.0-1%{?dist}
Expand Down
150 changes: 117 additions & 33 deletions api/v1/grpc/proto/ams.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions api/v1/grpc/proto/ams.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ message PushConfig {
RetryPolicy retry_policy = 2;
// Required. Authorization header that the sent messages should include into the request
string authorization_header = 4;
// Required. Defines the type of the destination the data will be sent to.
// Can be either http_endpoint or mattermost
PushType type = 5 ;
// Mattermost webhook url
string mattermost_url = 6;
// Mattermost username that the messages will be displayed under
string mattermost_username = 7;
// Mattermost channel that the messages will be delivered to
string mattermost_channel = 8;
// Indicates whether or not the payload should be decoded before being pushed to any remote destination
bool base_64_decode = 9;
}

// RetryPolicy holds information regarding the retry policy.
Expand All @@ -87,3 +98,10 @@ message RetryPolicy {
uint32 period = 2;
}

// PushType declares what kind of push configuration info a subscription will hold
enum PushType {
// HTTP_ENDPOINT refers to subscriptions that push messages to remote http endpoints
HTTP_ENDPOINT = 0;
// MATTERMOST refers to subscriptions that push messages to mattermost webhooks
MATTERMOST = 1;
}
Loading

0 comments on commit e72c3ba

Please sign in to comment.