https://github.com/tyktechnologies/tyk-plugin-demo-java
A Java gRPC plugin for Tyk.
https://github.com/tyktechnologies/tyk-plugin-demo-java
grpc java tyk
Last synced: 9 months ago
JSON representation
A Java gRPC plugin for Tyk.
- Host: GitHub
- URL: https://github.com/tyktechnologies/tyk-plugin-demo-java
- Owner: TykTechnologies
- Created: 2017-01-17T11:10:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T08:48:07.000Z (over 1 year ago)
- Last Synced: 2025-06-09T19:49:52.842Z (10 months ago)
- Topics: grpc, java, tyk
- Language: Java
- Homepage:
- Size: 65.4 KB
- Stars: 6
- Watchers: 44
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java gRPC plugin
## Plugin overview
This repository provides a sample [gRPC](http://www.grpc.io/) plugin, written in Java, intended to work as part of [Tyk](https://tyk.io/). Gradle is used.
A simple request dispatcher is implemented, based on [Tyk custom middleware hooks](https://tyk.io/docs/tyk-api-gateway-v1-9/javascript-plugins/middleware-scripting/) logic.
A class implements the required hook methods.
## The hook
This plugin implements a single hook, it performs a header injection, you may see the code [here](https://github.com/TykTechnologies/tyk-plugin-demo-java/blob/master/src/main/java/com/tyktechnologies/tykmiddleware/TykDispatcher.java).
## Running the gRPC server
gradle run
## Building a plugin bundle
The [`manifest.json`](manifest.json) file describes the hooks implemented by this plugin, to use it you must generate a bundle and load it into your Tyk API settings, [this guide](https://tyk.io/docs/plugins/how-to-serve-plugins/plugin-bundles) will walk you through the process.