This handler allows you to consume Apache Thrift
.thrift files and generate a remote executable schema for those services.
To get started, install the handler library from NPM:
Now, you can use it directly in your Mesh config file:
You can check out our example that uses Thrift Handler. Click here to open the example on GitHub
Config API Reference
String, required) - The name of the host to connect to.
Int, required) - The port number to attach to on the host.
String) - The path on which the Thrift service is listening. Defaults to '/thrift'.
Boolean) - Boolean value indicating whether to use https. Defaults to false.
String (binary | compact | json)) - Name of the Thrift protocol type to use. Defaults to 'binary'.
String, required) - The name of your service. Used for logging.
JSON) - JSON object representing the Headers to add to the runtime of the API calls
JSON) - If you are using a remote URL endpoint to fetch your schema, you can set headers for the HTTP request to fetch your schema.
String, required) - Path to IDL file