Categorygithub.com/konstellation-io/kai-processes/grpc-trigger
modulepackage
1.0.0
Repository: https://github.com/konstellation-io/kai-processes.git
Documentation: pkg.go.dev

# README

GRPC trigger

The GRPC webhook trigger is a predefined KAI process that creates a GRPC server instance.
It will stay listening for client requests through port 8080.

How to setup

There is no required configuration in your version file to use this process.

However, processes communicating with this trigger must be prepared to do so. Processes listening to the grpc trigger need to unmmarshal protobuf based JSON messages, and processes sending messages to the trigger need to marshal protobuf based JSON messages.

Both output and input messages towards this process require the usage of specific keys in the JSON.

To start communicating with the trigger once it is exposed it is recommended to do a reflection on the GRPC server. You can also download the proto file found within this repository and use it.

Output (JSON)

KeyTypeValue
param1strA param sent by the user
param2strA param sent by the user
param3strA param sent by the user

Output Example

{
 "param1": "example param",
 "param2": "a repo's url",
 "param3": "action to make"
}

Input (JSON)

KeyTypeValue
status_codestrStatus code for the workflow execution
messagestrA message sent by the user

Input Example

{
 "status_code": "200",
 "message": "All good!",
}

# Packages

No description provided by the author

# Functions

No description provided by the author