Skip to content

Commit

Permalink
s/bitly/nsqio
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Aug 29, 2015
1 parent 0f97a46 commit 04ffac3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ release no longer compiles with Go `1.0.x`.
* #91 - add consumer `DisconnectFrom*`
* #87 - allow `heartbeat_interval` and `output_buffer_timeout` to be disabled
* #86 - pluggable `nsqlookupd` behaviors
* #83 - send `RDY` before `FIN`/`REQ` (forwards compatibility with bitly/nsq#404)
* #83 - send `RDY` before `FIN`/`REQ` (forwards compatibility with nsqio/nsq#404)
* #82 - fix panic when conn isn't assigned
* #75/#76 - minor config related bug fixes
* #75/#77/#78 - add `tls-cert` and `tls-key` config options
Expand Down
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

The official Go package for [NSQ][nsq].

[![Build Status](https://secure.travis-ci.org/bitly/go-nsq.png?branch=master)][travis] [![GoDoc](https://godoc.org/github.com/bitly/go-nsq?status.svg)](https://godoc.org/github.com/bitly/go-nsq)
[![Build Status](https://secure.travis-ci.org/nsqio/go-nsq.png?branch=master)][travis] [![GoDoc](https://godoc.org/github.com/nsqio/go-nsq?status.svg)](https://godoc.org/github.com/nsqio/go-nsq)

The latest stable release is **[1.0.4][latest_tag]**.
The latest stable release is **[1.0.4][latest_tag]**

NOTE: The public API has been refactored as of `v1.0.0` and is not backwards compatible with
previous releases. **[0.3.7][legacy]** is the last stable release compatible with the legacy API.
Expand All @@ -16,13 +16,12 @@ See [godoc][nsq_gopkgdoc].

See the [main repo apps][apps] directory for examples of clients built using this package.

[nsq]: https://github.com/bitly/nsq
[nsq_gopkgdoc]: http://godoc.org/github.com/bitly/go-nsq
[protocol]: http://bitly.github.io/nsq/clients/tcp_protocol_spec.html
[apps]: https://github.com/bitly/nsq/tree/master/apps
[consumer]: http://godoc.org/github.com/bitly/go-nsq#Consumer
[producer]: http://godoc.org/github.com/bitly/go-nsq#Producer
[pr30]: https://github.com/bitly/go-nsq/pull/30
[legacy]: https://github.com/bitly/go-nsq/releases/tag/v0.3.7
[travis]: http://travis-ci.org/bitly/go-nsq
[latest_tag]: https://github.com/bitly/go-nsq/releases/tag/v1.0.4
[nsq]: https://github.com/nsqio/nsq
[nsq_gopkgdoc]: http://godoc.org/github.com/nsqio/go-nsq
[apps]: https://github.com/nsqio/nsq/tree/master/apps
[consumer]: http://godoc.org/github.com/nsqio/go-nsq#Consumer
[producer]: http://godoc.org/github.com/nsqio/go-nsq#Producer
[pr30]: https://github.com/nsqio/go-nsq/pull/30
[legacy]: https://github.com/nsqio/go-nsq/releases/tag/v0.3.7
[travis]: http://travis-ci.org/nsqio/go-nsq
[latest_tag]: https://github.com/nsqio/go-nsq/releases/tag/v1.0.4
4 changes: 2 additions & 2 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ We've learned a lot over the last 2 years and we wanted `go-nsq` to reflect the
had working with the library as well as the general Go conventions and best practices we picked up
along the way.

The diff can be seen via: https://github.com/bitly/go-nsq/compare/v0.3.7...HEAD
The diff can be seen via: https://github.com/nsqio/go-nsq/compare/v0.3.7...HEAD

The bulk of the refactoring came via: https://github.com/bitly/go-nsq/pull/30
The bulk of the refactoring came via: https://github.com/nsqio/go-nsq/pull/30

#### Naming

Expand Down
8 changes: 4 additions & 4 deletions config_flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ package nsq_test
import (
"flag"

"github.com/bitly/go-nsq"
"github.com/nsqio/go-nsq"
)

func ExampleConfigFlag() {
cfg := nsq.NewConfig()
flagSet := flag.NewFlagSet("", flag.ExitOnError)

flagSet.Var(&nsq.ConfigFlag{cfg}, "consumer.options", "option to passthrough to nsq.Consumer (may be given multiple times, http://godoc.org/github.com/bitly/go-nsq#Config.Set)")
flagSet.Var(&nsq.ConfigFlag{cfg}, "consumer-opt", "option to pass through to nsq.Consumer (may be given multiple times)")
flagSet.PrintDefaults()

err := flagSet.Parse([]string{
"-consumer.options=heartbeat_interval,1s",
"-consumer.options=max_attempts,10",
"--consumer-opt=heartbeat_interval,1s",
"--consumer-opt=max_attempts,10",
})
if err != nil {
panic(err.Error())
Expand Down

0 comments on commit 04ffac3

Please sign in to comment.