SHARE
TWEET

Untitled

a guest Jun 15th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cfg := config{}
  2.  
  3. h, err := harvester.New(&cfg).
  4.   WithConsulSeed("127.0.0.1:8500", "", "", 0).
  5.   Create()
  6. if err != nil {
  7.   log.Fatalf("failed to create harvester: %v", err)
  8. }
  9.  
  10. err = h.Harvest(ctx)
  11. if err != nil {
  12.   log.Fatalf("failed to harvest configuration: %v", err)
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top