We have provided a template plugin that provides the same functionality as out-of-the-box milagro.
You need to install protobufs
If you change the portobufs definition run
$ protoc -I=. --go_out=. ./docs.proto
To add a new endpoint to the goKit Microservices framework
Add structs for http transport Add responses to milagro/swagger/swagger.config,yaml
milagro/pkg/milagroendpoints/endpoints.go
Thise instructions still aren't perfect
cp -r pkg/plugintemplate pkg/encryptastring
sed -i "" "s/template/encryptastring/g" pkg/encryptastring/service.go
sed -i "" "s/plugintemplate/encryptastring/g" plugins/encryptastring.go sed -i "" "s/pluginTemplate/encryptAString/g" plugins/encryptastring.go
nano ~/.milagro/config.yaml update.... plugins: service: encryptastring
go build -o target/service github.com/apache/incubator-milagro-dta/cmd/service target/service
Point your browser at: http://localhost:5555/status
you should see