https://github.com/mischief/pubnub
Go Bindings for the PubNub 3.3 REST API
https://github.com/mischief/pubnub
Last synced: about 1 year ago
JSON representation
Go Bindings for the PubNub 3.3 REST API
- Host: GitHub
- URL: https://github.com/mischief/pubnub
- Owner: mischief
- Created: 2013-04-04T04:04:20.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-12-08T23:42:23.000Z (over 11 years ago)
- Last Synced: 2025-02-08T15:47:06.876Z (over 1 year ago)
- Language: Go
- Size: 157 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pubnub
======
Go Bindings for the PubNub 3.3 REST API
*DISCLAIMER*: i wrote this for a job interview at pubnub which didn't work out anyway, i don't actually use or maintain it. if you want to see improvements here i am more that happy to merge working code into this repo..
Usage
=====
See pubnub_test.go for example use
Tests
=====
To test the api, use 'go test' in the root of the repository
```
mischief@omicron:~/code/go/src/github.com/mischief/pubnub$ go test -v
=== RUN TestUUID
--- PASS: TestUUID (0.00 seconds)
pubnub_test.go:15: UUID: f61f59ea-69f7-ebb3-2c56-ef6bf3bbca6c
=== RUN TestPubNubTime
--- PASS: TestPubNubTime (0.09 seconds)
pubnub_test.go:31: time response: 13650506022429176.000000
=== RUN TestPubNub
--- PASS: TestPubNub (0.53 seconds)
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506024157291"}
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506024482727"}
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506024858886"}
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506025050535"}
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506025524422"}
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506025886937"}
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506026283836"}
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506026497017"}
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506027071734"}
pubnub_test.go:80: Publishing "Hello, World"
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
pubnub_test.go:87: Publish response: []interface {}{1, "Sent", "13650506027503029"}
pubnub_test.go:62: Subscriber got a message: []interface {}{"Hello, World"}
PASS
ok github.com/mischief/pubnub 0.635s
```