chrisrink10/gryphondb — pull request #4 by chrisrink10 (2014-10-19 06:45:44+00:00)
Title: db/connpool.go

db/connpool.go
* Use global logger
* Begin to implement connection pool pause (still needs public API)

db/db.go
* Move errors to own file
* Use new newErrorf function in place of manually created errors
* Fix a few BoltDB key issues
* Upgrade errors to refer to an error code to allow identifying certain error situations (key not exists)

db/error.go
* Moved error codes and messages here

db/resource.go
* Removed RuleErrors
* Migrated all errors over to GryphonErrors

gryphondb.go
* Pass connection pool the global logger

handlers/common.go
* Removed deprecated functions
* Added 404 generic function
* Collapsed mux URLs from full words to a single letter

handlers/dicthandler.go
* Got createDictResourceHandler into a working state
* Created stubs for a few other handler functions

services/logging.go
* Logging service can multi-write to file and Stdout
* Logger implements io.WriteCloser