• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 6789

Build:
DEFAULT BRANCH: master
Ran 11 Jun 2019 05:20PM UTC
Jobs 1
Files 113
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6789

push

travis-ci

buger
PoC: Go-plugins support added (#2077)

added initial changes for https://github.com/TykTechnologies/tyk/issues/553

- provides low level access to plugin supplying actual `http.ResponseWriter`, `*http.Request`
- assumes that plugin optionally sends reply to `http.ResponseWriter` - in this case all tyk's MW-chain stops and reply returned to client
- assumes that plugin always wire reply to `http.ResponseWriter` in case of error
- recovers with 500 error reply in case plugin did panic 
- our logic around custom middleware was used
- we specify all settings on API spec level in `custom_middleware` field, i.e.:
```
"custom_middleware": {
      "pre": [],
      "post": [
        {
          "name": "MyProcessRequest",
          "path": "/abc/xyz.so",
          "require_session": true
        }
      ],
      "post_key_auth": [],
      "auth_check": {},
      "driver": "goplugin",
      ...
    }
```
- added new plugin driver `"goplugin"`
- supports `"pre"`, `"post"`, `"post_key_auth"` and `"auth_check"` custom middlewares as described in https://tyk.io/docs/customise-tyk/plugins/rich-plugins/rich-plugins-work/#coprocess-dispatcher-hooks 
- .so file can also be packaged as a bundle and loaded/deployed using our logic for `custom_middleware_bundle`

11712 of 18272 relevant lines covered (64.1%)

0.72 hits per line

Jobs
ID Job ID Ran Files Coverage
2 6789.2 (LATEST_GO=true) 11 Jun 2019 05:20PM UTC 0
64.1
Travis Job 6789.2
Source Files on build 6789
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6789
  • 87a105ba on github
  • Prev Build on master (#6786)
  • Next Build on master (#6795)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc