Commit b209cb16 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

contrib: add words on adding new plugins (#3057)

* contrib: add words on adding new plugins

New plugins are usually dropped in one giant ball of code, add some
words on how this can be approached and made to work faster.

(will at least give us something to point at)
Signed-off-by: default avatarMiek Gieben <miek@miek.nl>

* Update CONTRIBUTING.md
Co-Authored-By: default avatarMichael Grosser <development@stp-ip.net>

* Update CONTRIBUTING.md
Co-Authored-By: default avatarMichael Grosser <development@stp-ip.net>

* Update CONTRIBUTING.md
Co-Authored-By: default avatarMichael Grosser <development@stp-ip.net>

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
Co-Authored-By: default avatarMichael Grosser <development@stp-ip.net>
parent 92a636df
......@@ -42,6 +42,16 @@ If possible make a pull request as small as possible, or submit multiple pull re
feature. Smaller means: easier to understand and review. This in turn means things can be merged
faster.
## New Plugins
A new plugin is (usually) about 1000 lines of Go. This includes tests and some plugin boiler
plate. This is a considerable amount of code and will take time to review. To prevent too much back and
forth it is advisable to start with the plugin's `README.md`; This will be it's main documentation and will help
nail down the correct name of the plugin and its various config options.
From there it can work its way through the rest (`setup.go`, the `ServeDNS` handler function,
etc.). Doing this will help the reviewers, as each chunk of code is relatively small.
## Updating Dependencies
We use [Go Modules](https://github.com/golang/go/wiki/Modules) as the tool to manage vendor dependencies.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment