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

TykTechnologies / tyk / 6789 / 2

Build:
DEFAULT BRANCH: master
Ran 11 Jun 2019 05:20PM UTC
Files 113
Run time 10s
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

11 Jun 2019 05:09PM UTC coverage: 64.098% (+0.2%) from 63.878%
LATEST_GO=true

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

Source Files on job 6789.2 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 13
  • Source Changed 12
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6194
  • Travis Job 6789.2
  • 87a105ba on github
  • Prev Job for LATEST_GO=true on master (#6786.2)
  • Next Job for LATEST_GO=true on master (#6795.2)
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