plugin-test

command module
v0.0.0-...-e2d1181 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 6 Imported by: 0

README

Build Status

Plugin Test

Ejemplo de implementacion de plugins en go utilizando rpc con la libreria https://github.com/hashicorp/go-plugin

  1. Compila el programa principal.
go build -o plugin-test
  1. Ejecuta el binario y notaras que el evento original es igual al filtrado
./plugin-test
  1. Compila cualquier plugin y guardalo en el directorio plugin con el nombre filterevent.plug. En ese caso se usa el inc10
go build -o ./plugin/filterevent.plug ./plugins/inc10/main.go
  1. Ejecuta de nuevo el binario y notaras diferencias entre el evento original y el filtrado
./plugin-test
  1. Puedes hacer el mismo proceso con el plugin inc20 o bien puedes escribir tu propio plugin

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
plugins
inc10 command
inc20 command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL