Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (46 sloc) 1.05 KB
/**
* EventSource related messages
*
*/
syntax = "proto3";
package gateways;
/**
* Service for handling event sources.
*/
service Eventing {
// StartEventSource starts an event source and returns stream of events.
rpc StartEventSource(EventSource) returns (stream Event);
// ValidateEventSource validates an event source.
rpc ValidateEventSource(EventSource) returns (ValidEventSource);
}
/**
* Represents an event source
*/
message EventSource {
// ID of the event source. internally generated.
string id = 1;
// The event source name.
string name = 2;
// The event source configuration value.
string data = 3;
// Version of the event source
string version = 4;
}
/**
* Represents an event
*/
message Event {
// The event source name.
string name = 1;
// The event payload.
bytes payload = 2;
}
/**
* Represents if an event source is valid or not
*/
message ValidEventSource {
// whether event source is valid
bool isValid = 1;
// reason if an event source is invalid
string reason = 2;
}
You can’t perform that action at this time.