Replaces gorilla mux to goji and decied to remove vendor dependencies from git (#28)

* Replaces gorilla mux to goji

Removed the applicationContext stuff. Now every handler is a struct, and each one hold its dependencies.

* handler not handle

* Ignoring vendor dir

* Hide handlers complexity instantiation.

* Websocket handler does not need common handlers

* Use maps instead of for loops to search in memdb for apps (#29)

* Use maps instead of for loops to search in memdb for apps; use mutexes more efficiently by immediately unlocking when lock is no longer needed, not just at the end of the function via defer

* Fixed assignment to entry in nil map

* Minor impovements in source code

* Replaces gorilla mux to goji

Removed the applicationContext stuff. Now every handler is a struct, and each one hold its dependencies.

* handler not handle

* Ignoring vendor dir

* Hide handlers complexity instantiation.

* Websocket handler does not need common handlers

* renamed IdMutex to IDMutex to follow go convention
This commit is contained in:
Claudemiro
2016-08-11 21:06:05 -03:00
committed by GitHub
parent 7a4568e92d
commit 6225d8006f
76 changed files with 154 additions and 11925 deletions
Generated
+12 -6
View File
@@ -1,14 +1,20 @@
hash: bfb508bdf4f85c71c7eef4bb9431148ee373dfaf31d001d050d933f80ac4288e
updated: 2016-08-09T22:49:29.988191345-03:00
hash: 0a451841a1f9493d419d658fab8da6863ef5df0645ddea506a225865078c9dcb
updated: 2016-08-10T22:23:10.989237578-03:00
imports:
- name: github.com/golang/glog
version: 23def4e6c14b4da8ac2ed8007337bc5eb5007998
- name: github.com/gorilla/context
version: aed02d124ae4a0e94fea4541c8effd05bf0c8296
- name: github.com/gorilla/mux
version: 780415097119f6f61c55475fe59b66f3c3e9ea53
- name: github.com/gorilla/websocket
version: a69d25be2fe2923a97c2af6849b2f52426f68fc0
- name: github.com/pusher/pusher-http-go
version: 2bba5f217f6f0f4f0c0a9bb11b945b206b32bec5
- name: goji.io
version: e355964ac565b94cf0fc7f218346626529125086
subpackages:
- pat
- pattern
- internal
- name: golang.org/x/net
version: 075e191f18186a8ff2becaf64478e30f4545cdad
subpackages:
- context
testImports: []