claudemiro
e71294de18
Standardized error messages
2016-03-06 18:12:03 -03:00
claudemiro
a7c5813501
Testing http handlers
2016-03-06 17:53:51 -03:00
claudemiro
383c02de1c
Added params as a parameter for each handler.
2016-03-06 16:09:21 -03:00
claudemiro
1bae7f13ad
Internal refactoring. Removing the global config.
2016-03-06 15:34:12 -03:00
claudemiro
f07549fb6a
Changed syntax to javascript to fix the README
2016-03-06 00:18:18 -03:00
claudemiro
c272361861
Added comments in config example section in README
2016-03-06 00:17:19 -03:00
claudemiro
9dfc8c9cc0
Ignoring vscode files
2016-03-05 16:59:17 -03:00
claudemiro
6c55af2b5c
Adding README and LICENSE to distribution
2016-03-05 09:43:02 -03:00
claudemiro
679ff1e589
Adding the version in the generated binary
2016-03-05 09:30:36 -03:00
claudemiro
cbdd4e428a
Better config example
2016-03-05 09:29:57 -03:00
claudemiro
805e9e3957
Removed Makefile and Add a Rakefile
2016-03-05 09:27:40 -03:00
claudemiro
44bbc1b1ea
Renamed constants, avoid export uncessary constants
2016-03-04 08:33:18 -03:00
claudemiro
e02773bbeb
function init is not necessary
2016-03-04 08:32:39 -03:00
claudemiro
5fa621d743
Added user-agent header with the url of the project
2016-03-04 08:32:08 -03:00
claudemiro
880d7bda2a
Using reader for reading config file
2016-03-04 08:31:32 -03:00
claudemiro
7dad2de275
Added SSL port
2016-03-04 08:31:03 -03:00
claudemiro
081611fd87
Changed the banner, fixed spelling
2016-03-04 08:30:26 -03:00
claudemiro
8810e523f0
Adding config for functional tests
2016-03-03 21:39:15 -03:00
claudemiro
baf551ecdf
Updated TODO.org
2016-03-03 21:07:57 -03:00
claudemiro
f3dba811b7
Improved Handling SSL
...
* Panic is betten than using channels in this case
* Changed the names to a more recognized names
* Improved the README with a full config file example
2016-03-03 21:01:21 -03:00
claudemiro
55a7a0b96c
Fixed SSL verification
2016-03-03 20:46:37 -03:00
Claudemiro
cadee4e26d
Merge pull request #10 from zaeznet/SSL
...
SSL Implementation
2016-03-03 20:45:42 -03:00
claudemiro
51eacdcf51
Managing vendor dependencies with glide
2016-02-21 20:15:10 -03:00
Claudemiro
412d8be451
Merge pull request #7 from jweslley/private-channel-payload
...
Private channel payload
2016-01-28 07:41:57 -02:00
Claudemiro
68f2e15320
Merge pull request #6 from jweslley/master
...
minor improvements
2016-01-27 09:10:52 -02:00
claudemiro
517462a7af
Cache of the valid channel name regex
...
* Added a Benchmark to verify the performance
* Now it is 10 times faster
2016-01-23 22:25:14 -02:00
claudemiro
56da1dea01
Starting doing integration tests
2016-01-18 22:52:03 -02:00
claudemiro
1971da652f
Basic integration test
2016-01-18 00:41:45 -02:00
claudemiro
f81a365e0c
Changed the max number to the max in64 value
2016-01-18 00:40:06 -02:00
claudemiro
1de947cedc
The random Seed should be executed only once.
...
If two users connect to the system in the same second both would receive the same id. This fix this error.
2016-01-18 00:37:55 -02:00
claudemiro
45cffc17a8
Added Link to badge, fix indentation.
2016-01-17 00:32:11 -02:00
claudemiro
59abf6ac5b
Added Test for newConnection.
2016-01-17 00:27:21 -02:00
claudemiro
cbb34a928f
Verify if the exist the channel before
2016-01-17 00:12:12 -02:00
claudemiro
403138e28f
APP_KEY not API_KEY
2016-01-16 21:48:45 -02:00
claudemiro
8dea85e71c
Added badge quality report
2016-01-16 21:26:52 -02:00
claudemiro
3fc072373a
Fix lint suggestions
2016-01-16 21:20:23 -02:00
claudemiro
cad813e729
Removed unused file
2016-01-16 20:50:42 -02:00
Claudemiro
1054411b60
Fixed typo
...
Fixed typo
2015-11-07 23:49:03 -02:00
Claudemiro
b972058622
Merge pull request #4 from orthographic-pedant/spell_check/beautiful
...
Fix typographical error(s)
2015-10-05 14:26:20 -03:00
claudemiro
341909e600
Changed the way vendor imports, using the new GO15VENDOREXPERIMENT feature
2015-08-27 23:48:05 -03:00
claudemiro
0bf660183b
Avoid test vendor packages.
2015-06-13 18:44:21 -03:00
claudemiro
c697311be3
Fixed a failing test.
2015-06-13 11:24:38 -03:00
claudemiro
f910433853
Updated config example.
...
Removed OnlySSL as this feature is not implemented yet and removed
username and password.
2015-06-13 11:20:12 -03:00
claudemiro
883376b0c8
Updated Readme.
...
Updated the readme to explain how to install the package.
2015-06-13 09:23:29 -03:00
claudemiro
8dbd3ccbea
Removing the expvar handler.
...
I am removing the expvar handler, this is uncessary to me. I was using
the goji/httpauth package to authenticate this handler, so, I am
removing the dependency too.
2015-06-13 09:18:40 -03:00
claudemiro
228ed284d9
Removed godep dependency.
...
Golang community are discuting a vendor aproach to go dependencies. This
change will come as experimental in go 1.5. For now I am removing the
godep dependency manager and using a vendor aproach.
I still have to use the full path when importing dependencies, but when
go1.5 released I just have to rename the imports and use a -vendor
prefix when building the project.
2015-06-13 09:11:55 -03:00
claudemiro
10e6048d11
Removed forgotten printf
2015-05-17 13:16:59 -03:00
claudemiro
e2d07e9760
Validating channel name when connecting.
2015-05-17 09:51:17 -03:00
claudemiro
485bc01abe
Changed SessionID format.
...
Pusher libs are validating the sessionID format. So I need to conform
with its format.
2015-05-17 09:25:57 -03:00
claudemiro
7b578c4fb4
Added Created at to connection.
2015-02-02 14:12:11 -03:00
claudemiro
03607062aa
Fixed a litte comment explanation
2015-02-01 23:03:55 -03:00
claudemiro
846231f5f3
Not necessary export conf.
2015-01-31 15:18:38 -03:00
claudemiro
201cba86a9
There is no reason to export this functions and this types.
2015-01-31 15:12:54 -03:00
claudemiro
d74426127c
Updated go version in godep do 1.4.1
2015-01-31 10:57:48 -03:00
claudemiro
cd2e58d0c5
No need to export NewChannel function.
2015-01-31 09:19:00 -03:00
claudemiro
eca114dcf1
Fixed tests
2015-01-31 09:16:47 -03:00
claudemiro
a3465f332e
There is no reason to export these functions.
2015-01-31 09:13:24 -03:00
claudemiro
e9bdc0859e
Updated comments in constants.
...
* The maximun event size is 10kb the comment said it was 20kb
* Commented the error codes that are not implemented.
2015-01-31 08:55:06 -03:00
claudemiro
b426bc2534
Added ellips to test all packages at once.
2015-01-31 08:30:10 -03:00
claudemiro
cd1fd8995d
File structure organization.
...
Create a new package ipe and put everything n there except for the main function.
2015-01-31 08:29:01 -03:00
claudemiro
c7f757e517
Updated the ipe upstart job definition
...
Added the setuid option.
2015-01-30 11:58:52 -03:00
claudemiro
8d671751b3
Fixed an warning that go vet found.
2015-01-27 11:46:28 -03:00
claudemiro
018391ad66
Added some channels tests
2015-01-21 22:34:45 -03:00
claudemiro
8586b64bda
Added tests to app
2015-01-20 08:33:02 -03:00
claudemiro
ef756d789a
Updated the README
...
Explained how to use godep to get the source and dependencies.
2015-01-19 03:43:25 -03:00
claudemiro
67676742a9
Removed comments in example json.
2015-01-18 08:40:36 -03:00
claudemiro
5218fb2ca4
Updated Readme
2015-01-18 08:01:15 -03:00
claudemiro
d1473197b8
Better file organization.
...
Moved connection and channel types for its own files.
2015-01-17 19:58:46 -03:00
claudemiro
b93da8ccc8
Fixed Tests
2015-01-17 08:21:49 -03:00
claudemiro
8def052b9d
Added a command line banner.
2015-01-17 08:21:23 -03:00
claudemiro
0f5d238065
Removed the log from HTTP.
2015-01-16 22:37:45 -03:00
claudemiro
7367f06ccb
Added an upstart init file example.
2015-01-16 22:36:04 -03:00
claudemiro
a4e08d1e85
Updated Dependencies
2015-01-16 22:35:41 -03:00
claudemiro
f6e1993eb6
The websocket must be closed only when it is alive
2015-01-16 13:18:50 -03:00
claudemiro
1dc3105155
Moved function to generate sessions Ids from websocket to Utils
2015-01-16 13:18:24 -03:00
claudemiro
a51629f7b5
Removing empty channels.
...
Removing empty channels when the channel becomes vacated.
2015-01-16 13:17:22 -03:00
claudemiro
0d4e9742b9
Added flymake files in gitignore.
2015-01-16 13:16:08 -03:00
claudemiro
7032e69ffb
Changed Type from Subsriber to Connection.
...
I think Connection is a better name.
2015-01-15 20:13:42 -03:00
claudemiro
edf4b421bf
Updated TODO list
2015-01-15 20:03:07 -03:00
claudemiro
874c07267f
Just little changes.
2015-01-15 07:53:18 -03:00
claudemiro
414c1d98ee
Calculating the total of users in a channel
2015-01-15 07:52:23 -03:00
claudemiro
5043b05c7b
Triggering Presence channels events.
2015-01-14 13:19:11 -03:00
claudemiro
5695bb445d
Updated TODO list
2015-01-14 13:17:47 -03:00
claudemiro
dd78126371
Fixed Makefile amd64 arch.
2015-01-14 13:16:54 -03:00
claudemiro
431812f695
Added Godep as a dependency manager.
2015-01-13 21:51:12 -03:00
claudemiro
3999ad5aa0
Removed empty import
2015-01-13 20:53:12 -03:00
claudemiro
2394f167a5
Changes in TODO
2015-01-13 20:52:20 -03:00
claudemiro
0e3440bc35
Fixed app and connection tests.
...
The tests was not updated.
2015-01-13 13:29:52 -03:00
claudemiro
59457cc734
The channel could be created in the Rest POST Event
2015-01-13 13:09:45 -03:00
claudemiro
1f5ec97f57
Fixed typo error in README
2015-01-13 13:09:14 -03:00
claudemiro
4b08b0c658
Fixed error in Makefile.
2015-01-13 08:59:33 -03:00
claudemiro
7e91fbe35d
user_id in client events when channels is presence
...
The channels must be presence
2015-01-13 08:44:41 -03:00
claudemiro
2cb8b13dc6
CLeanup the User and Password checking
...
Added a Method in ConfigFile
2015-01-13 08:10:47 -03:00
claudemiro
0aec168ab3
Added basic authentication in debug/vars
...
Using a simple http auth middleware.
https://github.com/goji/httpauth
2015-01-13 08:01:02 -03:00
claudemiro
be66978479
Changed the data field from Client WebHook
...
The value correct is the value associated with the event, not the data
attached to the subscription.
2015-01-13 00:38:48 -03:00
claudemiro
c125bc7206
Updated TODOS
2015-01-13 00:24:29 -03:00
claudemiro
dc28fa90ff
Updated example config file.
...
Added the URL called on WebHooks.
2015-01-13 00:11:16 -03:00
claudemiro
3a9b786a46
Length of bytes that are read from the crypto/rand
...
Now the value is 25
2015-01-13 00:08:37 -03:00
claudemiro
ef1070887b
Refactor Export variables
...
Now the variables are separated by app and other stats were added.
2015-01-13 00:00:34 -03:00
claudemiro
cadc72d482
Exporting Variables for Debug
...
The variables are
* Total Channels
* Total Subscribers
* Total of unique Messages received by the system.
2015-01-12 22:41:42 -03:00