Skip to content

Custom plugin development #982

Answered by rustatian
fr05t1k asked this question in Q&A
Feb 4, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Hey @fr05t1k. You don't need to fork any repository to add your custom plugin. A few days ago we introduced a new tool called velox.
So, to create your own plugin (only GitHub (private repos too) supported at the moment), you need to do the following:

  1. If it's independent - create a repo, call the structure: sample
type Plugin struct {}
  1. If this is a middleware - have a look at the RR HTTP middleware API: click, implement it on your structure.
  2. If this is any plugin, which re-implements API - choose the proper interface and implement it.
  3. Add your plugin to the velox configuration: click.
you_super_plugin = { ref = "master", owner = "you", repository = "super_plugin" }
  1. Build the RR: vx b…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@rustatian
Comment options

@rustatian
Comment options

@fr05t1k
Comment options

@fr05t1k
Comment options

@rustatian
Comment options

Answer selected by fr05t1k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
R-question Question
2 participants