Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.35 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.35 KB

INSTALL

go install github.com/childe/healer/command/healer@latest

Docker

docker pull rmself/healer:latest

what can healer command do

  • produce messages
  • consume messages
  • get metadata
  • create topics
  • delete topics
  • create(increase) partitons
  • describe configs
  • alter configs
  • alter partiton assignments
  • get offsets
  • get pendings
  • reset offsets
  • (re)elect leaders
  • describe acls
  • create acls
  • delete acls
  • rest apis of doing jobs above

Code Examples

Group Consumer

group consumer(cluster style)

https://github.com/childe/healer/blob/master/command/healer/cmd/group-consumer.go

Producer

https://github.com/childe/healer/blob/master/command/healer/cmd/console-producer.go

Console Consumer

one consumer consume messages from all partitons

https://github.com/childe/healer/blob/master/command/healer/cmd/console-consumer.go

Simple Consumer

consume from only one certain partition

https://github.com/childe/healer/blob/master/command/healer/cmd/simple-consumer.go