iwanbk / gobeanstalk Goto Github PK
View Code? Open in Web Editor NEWGo Beanstalkd Client Library
License: Other
Go Beanstalkd Client Library
License: Other
We now have stats
, stats-job
, stats-tube.
which returns yaml strings.
But from a user perspective, we do not want to deal with yaml. We want data wraped in yaml, not yaml itself.
To achieve this, I have API modification related problem and Implementation-related problem
Which one looks good to you?
parsed_item, err := beanstalkc_conn.StatsTube_Parsed("default")
parsed_item, err := beanstalkc_conn.StatsTube("default", func(_ string) map[string]interface{} {
panic("do something")
})
2b)
parsed_item, err:= beanstalkc_conn.StatsTube("default")
Which one looks good to you?
Of course. If you prefer 2a, we can leave this to users to decide.
use https://github.com/kr/beanstalk/blob/master/parse.go
This will not have any dependence introduced. and since kr used that, It shall looks good to us.
use https://github.com/go-yaml/yaml
A huge but seems well-tested library
what about the tube support?
steps:
reserve
to fetch message when a message is availableput
to add a new message to queue. this call does not return'put' command blocks when theres a reserve command waiting for message
I'm using gpm
to manage my go dependencies and need the Quit command which isn't in the 0.1 release. Would you please tag a new one? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.