Skip to content

tinybit/go-plugin-log-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modified KV Example

This is an improved example of usage for hashicorp/plugin

Modifications include:

  • injection of zerolog logger into plugin mechanism.
  • removal of unnesessary net/rpc
  • capturing native stderr logs from Plugins in Main process
  • proper logger calls from Plugins into main Process using bidirectional communication

This example builds a simple key/value store CLI where the mechanism for storing and retrieving keys is pluggable.

To build this example:

$ make

To run this example:

$ make run_put
$ make run_get

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors