Skip to content

Instantly share code, notes, and snippets.

@mantzas
Created June 4, 2019 18:55
Show Gist options
  • Save mantzas/77295ae137d963777c73fd8ac51fb6a6 to your computer and use it in GitHub Desktop.
Save mantzas/77295ae137d963777c73fd8ac51fb6a6 to your computer and use it in GitHub Desktop.
harvester no monitor
cfg := config{}
h, err := harvester.New(&cfg).
WithConsulSeed("127.0.0.1:8500", "", "", 0).
Create()
if err != nil {
log.Fatalf("failed to create harvester: %v", err)
}
err = h.Harvest(ctx)
if err != nil {
log.Fatalf("failed to harvest configuration: %v", err)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment