Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.4 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.4 KB

Writing an SSE plugin using Go

Implementing a server - Protobuf generated files

The interface between the Qlik Engine acting as a client and the Server-side extension acting as server is defined in the file ServerSideExtension.proto.

RPC methods

The RPC methods implemented in the Basic example are GetCapabilities and ExecuteFunction. There is no script support.

GetCapabilities method

The GetCapabilities method returns a Capabilities object, describing the operations supported by the plugin.

ExecuteFunction method

The ExecuteFunction method switches over the numeric function identifier sent in the qlik-functionrequestheader-bin header. Each case construct then iterates over the BundledRows elements packed into the request stream and writes the results to the output stream. There are five functions implemented in the Go example plugin:

  • EchoString (echoes the supplied string back to Qlik)
  • SumOfRow (summarizes two columns, in a row-wise manner)
  • SumOfColumn (summarizes one column)
  • Cache (example of SSE caching)
  • NoCache (example of disabling SSE cache)