Skip to content

suryatresna/devkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devkit Toolkit

Mini toolkit for any development tools

How to use

Install the package with the following command:

go install github.com/suryatresna/devkit@latest

Command List

Kafka

Produce Message

devkit kafka produce --brokers 127.0.0.1:19092 --topic topic.foo.bar  --jsonfile tmp/testjson.json

Manual Commit

devkit kafka commit --brokers localhost:9092 --group my-group --topic my-topic --poll 1

Reset Offset

devkit kafka offset --brokers localhost:9092 --group my-group --topic my-topic --offset 0 --datetime "3/19/2025, 12:06:37"
  • offset 0 will use datetime as offset, if datetime not set, that will use default date time.Now()
  • offset 1 will use beginning of offset
  • offset -1 will use end of offset

Gocraft

devkit gocraft worker --redis 127.0.0.1:6379 --ns fooworker  --job foojob  --json '{"myid":1234}'

Feature Incoming

  • Client consuming
  • Create Topic
  • Delete Topic

About

mini tools for productivity

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages