apache / apisix-go-plugin-runner

Go Plugin Runner for APISIX
https://apisix.apache.org/
Apache License 2.0
173 stars 68 forks source link

feat: add DefaultPlugin #92

Closed soulbird closed 2 years ago

soulbird commented 2 years ago

Add DefaultPlugin so that we don't need to reimplement all the methods.

codecov-commenter commented 2 years ago

Codecov Report

Merging #92 (a8ec02b) into master (d283ba2) will decrease coverage by 1.97%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #92      +/-   ##
==========================================
- Coverage   82.01%   80.04%   -1.98%     
==========================================
  Files          14       14              
  Lines         901      897       -4     
==========================================
- Hits          739      718      -21     
- Misses        117      133      +16     
- Partials       45       46       +1     
Impacted Files Coverage Δ
cmd/go-runner/plugins/fault_injection.go 61.29% <ø> (+1.91%) :arrow_up:
cmd/go-runner/plugins/limit_req.go 81.81% <ø> (+3.55%) :arrow_up:
cmd/go-runner/plugins/response_rewrite.go 82.60% <ø> (+3.44%) :arrow_up:
cmd/go-runner/plugins/say.go 77.77% <ø> (+4.09%) :arrow_up:
internal/server/server.go 49.20% <0.00%> (-16.67%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d283ba2...a8ec02b. Read the comment docs.