package
3.16.1+incompatible
Repository: https://github.com/ardentblue/go-pubnub.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
GenRandom gets a random instance.
InitAppEngineContext initializes the httptest responsewriter and request To be used with unit tests.
InitComplexMessage initializes a complex structure of the type CustomComplexMessage which includes a xml, struct of type PubnubDemoMessage, strings, float and integer.
ParseErrorResponse parses the response of the Error channel.
ParseErrorResponseForTestSuccess parses the response of the Error channel.
ParseResponseDummy is a methods that reads the response on the channel but does notthing on it.
ParseResponseDummyMessage is a methods that reads the response on the channel but does notthing on it.
ParseWaitResponse parses the response of the wait channel.
PrintTestMessage is common method to print the message on the screen.
ReplaceEncodedChars takes a string as a parameter and returns a string with the unicode chars \\u003c, \\u003e, \\u0026 with <,> and & respectively.
WaitForCompletion reads the response on the responseChannel or waits till the timeout occurs.
# Structs
CustomComplexMessage is used to test the custom structure encryption and decryption.
CustomSingleElementStruct Used to test the custom structure encryption and decryption The variables "foo" and "bar" as used in the other languages are not accepted by golang and give an empty value when serialized, used "Foo" and "Bar" instead.
CustomStruct to test the custom structure encryption and decryption The variables "foo" and "bar" as used in the other languages are not accepted by golang and give an empty value when serialized, used "Foo" and "Bar" instead.
Data represents a <data> element.
EmptyStruct provided the empty struct to test the encryption.
Entry represents an <entry> element.
PubnubDemoMessage is a struct to test a non-alphanumeric message.