Skip to content

TykTechnologies/tyk-plugin-demo-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go plugin

Plugin overview

This repository provides a sample Go plugin for Tyk.

The project implements a simple middleware for header injection (MyPreHook), using a Pre hook (see Tyk custom middleware hooks). An authentication hook is also provided (MyAuthCheck), see hooks.go.

Requirements

Go compiler.

Instructions

After checking the requirements, clone this repository:

$ git clone https://github.com/TykTechnologies/tyk-plugin-demo-golang.git

Enter the plugin directory:

$ cd tyk-plugin-demo-golang

Building a bundle

Go plugins are delivered as plugin bundles. The manifest file (manifest.json) contains the custom middleware definition.

$ tyk-cli bundle build

You may check the tyk-cli documentation for additional options.

Releases

No releases published

Packages

No packages published

Languages