Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/go.mod
/go.sum
/plugin-demo*
36 changes: 36 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
version: "3"

vars:
tags: |-
v5.2.0 809380889add6a31499a1fc938fe99247fd7a5be
v5.2.1 ffa83a27d3bf793aa27e5f6e4c7106106286699d
v5.2.2 af872f97490afc87137bfc5a340e60df85e2e01f
v5.2.3 9416376f8d9fb814505827ddbe7c8ce8bd95a1c8
v5.2.4 c905aaa879d8a33fd765a0fa8d633ae98e4ec7f7
v5.2.5 cbda400a37ee4b057793ba485f412e8087aea12a
v5.2.6 bbdd2620e57e62e7c8ffb05f89b2d2314ae1bd83

tasks:
default:
desc: "Loop through tags and run gomod task"
cmds:
- for:
var: tags
as: tag
split: "\n"
task: gomod-{{ splitArgs .tag | first }}-{{ splitArgs .tag | last }}

gomod-*-*:
desc: "Set up go.mod and build"
vars:
version: '{{index .MATCH 0}}'
commit: '{{index .MATCH 1}}'
cmds:
- silent: true
cmd: echo Building with tyk {{.version}}
- rm go.mod go.sum -f
- go mod init grpc_service > /dev/null 2>&1
- go get github.com/TykTechnologies/tyk@{{.commit}} > /dev/null 2>&1
- go mod tidy
- go build -o plugin-demo-{{.version}} .
2 changes: 1 addition & 1 deletion dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"golang.org/x/net/context"

"github.com/TykTechnologies/tyk-protobuf/bindings/go"
"github.com/TykTechnologies/tyk/coprocess"
)

// Dispatcher implementation
Expand Down
2 changes: 1 addition & 1 deletion hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"time"

"github.com/TykTechnologies/tyk-protobuf/bindings/go"
"github.com/TykTechnologies/tyk/coprocess"
)

// MyPreHook performs a header injection:
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"net/http"

"github.com/TykTechnologies/tyk-protobuf/bindings/go"
"github.com/TykTechnologies/tyk/coprocess"
"google.golang.org/grpc"
)

Expand Down