Support plugin loading on service.Init

This commit is contained in:
Asim Aslam
2019-09-09 20:17:36 -07:00
parent 3bfbcd5e6a
commit a5ce3e32da
3 changed files with 38 additions and 0 deletions

View File

@@ -92,6 +92,11 @@ var (
EnvVar: "MICRO_CLIENT_POOL_TTL",
Usage: "Sets the client connection pool ttl. e.g 500ms, 5s, 1m. Default: 1m",
},
cli.StringSliceFlag{
Name: "plugin",
EnvVar: "MICRO_PLUGIN",
Usage: "Comma separated list of plugins e.g /path/to/plugin.so",
},
cli.IntFlag{
Name: "register_ttl",
EnvVar: "MICRO_REGISTER_TTL",