Skip to content

Commit

Permalink
Merge pull request #32 from pubnub/CE-2909
Browse files Browse the repository at this point in the history
Publish improvements for Go 1.8
  • Loading branch information
crimsonred authored Mar 14, 2017
2 parents 4194587 + 0a1b6e9 commit 5ddfdce
Show file tree
Hide file tree
Showing 99 changed files with 1,045 additions and 626 deletions.
27 changes: 25 additions & 2 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
changelog:
-
changes:
-
text: “NonSub goroutine concurrency and worker queues”
type: improvement
date: Mar 10, 17
version: v3.11.0
-
changes:
-
Expand All @@ -12,7 +19,7 @@ changelog:
text: “Fix use of escaping JSON during publish”
type: improvement
date: Feb 22, 17
version: v3.10.0
version: v3.10.0
-
changes:
-
Expand Down Expand Up @@ -229,7 +236,23 @@ features:
- SUBSCRIBE-PUBLISHER-UUID
time:
- TIME-TIME
supported-platforms:
-
version: PubNub Go SDK 3.11.0
platforms:
- FreeBSD 8-STABLE or later, amd64, 386, Debian GNU/kFreeBSD not supported.
- Linux 2.6.23 or later with glibc, amd64, 386, arm, s390x, ppc64le, CentOS/RHEL 5.x not supported.
- Mac OS X 10.8 or later, amd64, use the clang or gcc† that comes with Xcode‡ for cgo support.
- Windows 7 or later, amd64, 386, use MinGW gcc†. No need for cygwin or msys.
editors:
- go1.2
- go1.3
- go1.4
- go1.5
- go1.6
- go1.7
- go1.8
name: go
schema: 1
scm: github.com/pubnub/go
version: “3.10.0”
version: “3.11.0”
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PubNub 3.10.0 client for Go
#PubNub 3.11.0 client for Go
* Go (1.2, 1.3, 1.4, 1.5, 1.6, 1.7.3, 1.8)
* Google App Engine (1.9.28 - 2015-10-29)
* Managed VMs (Google Cloud SDK 133.0.0)
Expand All @@ -9,7 +9,7 @@

## Contact [email protected] for all questions

##PubNub 3.10.0 Go based APIs
##PubNub 3.11.0 Go based APIs
Learn more at http://www.pubnub.com

## Available in this repository
Expand All @@ -22,7 +22,7 @@ Learn more at http://www.pubnub.com

### For Non Google App Engine

* [PubNub SDK for GO](messaging) (3.10.0)
* [PubNub SDK for GO](messaging) (3.11.0)
* [Example](messaging/examples/cli/pubnubExample.go)

## Contact [email protected] for all questions
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.0
3.11.0
2 changes: 1 addition & 1 deletion gae-example/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PubNub 3.10.0 example Google App Engine using Go
#PubNub 3.11.0 example Google App Engine using Go

###Demo Console App (Tested on Google App Engine SDK 1.9.28 - 2015-10-29)
We've included a demo console app which documents all the functionality of the client, for example:
Expand Down
2 changes: 1 addition & 1 deletion gae-managed-vm-example/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PubNub 3.10.0 example Google App Engine Managed VM using Go
#PubNub 3.11.0 example Google App Engine Managed VM using Go

###Demo Console App (Tested for Managed VMs on Google Cloud SDK 133.0.0)
We've included a demo console app which documents all the functionality of the client, for example:
Expand Down
8 changes: 4 additions & 4 deletions gae/messaging/pubnub.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package messaging provides the implemetation to connect to pubnub api on google appengine.
// Build Date: Nov 25, 2016
// Version: 3.10.0
// Version: 3.11.0
package messaging

//TODO:
Expand Down Expand Up @@ -60,7 +60,7 @@ const (
const (
//Sdk Identification Param appended to each request
sdkIdentificationParamKey = "pnsdk"
sdkIdentificationParamVal = "PubNub-Go-GAE/3.10.0"
sdkIdentificationParamVal = "PubNub-Go-GAE/3.11.0"

// This string is appended to all presence channels
// to differentiate from the subscribe requests.
Expand Down Expand Up @@ -216,7 +216,7 @@ var (

// VersionInfo returns the version of the this code along with the build date.
func VersionInfo() string {
return "PubNub Go GAE client SDK Version: 3.10.0; Build Date: Nov 25, 2016;"
return "PubNub Go GAE client SDK Version: 3.11.0; Build Date: Nov 25, 2016;"
}

// initStore initializes the cookie store using the secret key
Expand Down Expand Up @@ -2727,7 +2727,7 @@ func (pub *Pubnub) connect(context context.Context, w http.ResponseWriter, r *ht
Host: origin,
Opaque: fmt.Sprintf("//%s%s", origin, opaqueURL),
}
useragent := fmt.Sprintf("ua_string=(%s) PubNub-Go-GAE/3.10.0", runtime.GOOS)
useragent := fmt.Sprintf("ua_string=(%s) PubNub-Go-GAE/3.11.0", runtime.GOOS)

req.Header.Set("User-Agent", useragent)
if err == nil {
Expand Down
4 changes: 3 additions & 1 deletion messaging/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
## Contact [email protected] for all questions

#PubNub 3.10.0 client for Go 1.0.3, 1.1, 1.3, 1.3.1, 1.4.2, 1.5.2, 1.6.2, 1.7.3, 1.8
#PubNub 3.11.0 client for Go 1.0.3, 1.1, 1.3, 1.3.1, 1.4.2, 1.5.2, 1.6.2, 1.7.3, 1.8

###Important changes in this version:
* The authKey argument was added to all PAM method.
* Subscribe method arguments changed

###Change log
* 3.1q.0
* NonSub goroutine concurrency and worker queues.
* 3.10.0
* Breaking API Change: newPubnub has a new parameter where it expects a logger instance [Example](#init). This fixes a rare race condition.
* Fix use of escaping JSON during publish
Expand Down
Loading

0 comments on commit 5ddfdce

Please sign in to comment.