Skip to content

Instantly share code, notes, and snippets.

@guanlan
guanlan / cla.md
Created July 16, 2021 00:08 — forked from nijikokun/cla.md
Kong Contributor License Agreement

Kong Contributor License Agreement

Thank you for your interest in making a Contribution to a project of Kong Inc., a USA company with notice address at [251 Post St, 2nd Floor San Francisco, CA, 94108, USA] (“Kong” or “we”). In order to clarify the intellectual property license granted with Contributions from you, Kong must have an Individual Contributor License Agreement (“ICLA”) on file that has been signed by you, a developer of software or other technology (either an individual or an entity), indicating agreement to the license terms below. By electronically signing below, you are consenting to transact electronically and are entering into a binding contract, and you accept and agree to the following terms and conditions for your Contributions submitted Kong.

BEFORE SIGNING AND/OR CLICKING A BUTTON TO E-SIGN OR ACCEPT, CAREFULLY READ THE TERMS AND CONDITIONS OF THIS AGREEMENT AND ANY TERMS OF USE PROVIDED THROUGH THE SIGNING PROCESS.

If you are not authorized as set forth above, do not complete the

@guanlan
guanlan / gist:45df35521b746c28d024691fffc01032
Last active January 1, 2020 17:49
Kong Go Plugin PDK Dev Guide [draft]
To write a Kong plugin in Go, you need to:
Define a structure type to hold configuration.
Add methods on that structure to handle events
Use the go-pdk.
Compile using the -buildmode=plugin flag, and put the resulting binary into the directory specified with the go_plugins_dir configuration parameter.
Configuration Structure
Plugins written in Lua define a schema to specify how to read and validate configuration data coming from the datastore or he admin API. Since Go is a static type language, all that specification is handled by defining a configuration structure.
type MyConfig struct {
Path string
### Keybase proof
I hereby claim:
* I am guanlan on github.
* I am guanlan (https://keybase.io/guanlan) on keybase.
* I have a public key ASDuhg-hSeKrtiFr53otlnZWdYK5fl953Pz6enEt_4DpXwo
To claim this, I am signing this object: