Commit Graph

307 Commits

Author SHA1 Message Date
Jannis Mattheis 8cffa66531 Add docker & build on tags 2018-02-23 19:01:06 +01:00
Jannis Mattheis a22ace4f7d Move vInfo (in var its not initialized yet) 2018-02-21 19:39:46 +01:00
Jannis Mattheis 9bf6b0dd93 Add debug output for swagger validate 2018-02-21 19:27:31 +01:00
Jannis Mattheis 2fc25ab132 Add build script 2018-02-21 19:27:31 +01:00
Jannis Mattheis a60c2f2d2f Add some logging & version info building 2018-02-21 19:27:31 +01:00
Jannis Mattheis e458bb1328 Add version api & model 2018-02-21 19:27:31 +01:00
Jannis Mattheis a413b3d182 Log errors 2018-02-19 17:40:05 +01:00
Jannis Mattheis 80887bf4b5 Add support for ssl. 2018-02-19 17:40:05 +01:00
Jannis Mattheis 7bbe7d374a Adjust config for SSL support 2018-02-19 17:40:05 +01:00
Jannis Mattheis 9d635b15a6 Add json mapping for ID in client & app 2018-02-18 12:56:42 +01:00
Jannis Mattheis c76dffdd61 Add swagger validate build step 2018-02-18 12:56:42 +01:00
Jannis Mattheis d965b4e44d Move app.go to root project 2018-02-18 12:56:42 +01:00
Jannis Mattheis 291e5447ed Update deps 2018-02-18 12:56:42 +01:00
Jannis Mattheis e13aff389b Add swagger documentation 2018-02-18 12:56:42 +01:00
Jannis Mattheis 6a5357f9b3 Format & reorder imports 2018-02-18 12:56:42 +01:00
Jannis Mattheis 9c47b73b1d Move models and add docu to models 2018-02-18 12:56:42 +01:00
Jannis Mattheis a5acb20d0e Use custom header for authentication 2018-02-18 12:56:42 +01:00
Jannis Mattheis 1e7e1a71f7 Rename to gotify 2018-02-12 16:48:01 +01:00
Jannis Mattheis 4bb6950e34 Set content type of api requests to application/json 2018-02-12 16:33:03 +01:00
Jannis Mattheis c20e999b70 Add not found handler 2018-02-12 16:33:03 +01:00
Jannis Mattheis 74d80765e5 Fix error handler
The errors can not be of the type validation error, for example if the
json string cannot be parsed.
2018-02-12 16:33:03 +01:00
Jannis Mattheis edec140c82 Limit sqlite to one connection
we use the database connection inside the handlers from the http
framework, therefore concurrent access occurs. Sqlite cannot handle
concurrent writes, so we limit sqlite to one connection.
see https://github.com/mattn/go-sqlite3/issues/274
2018-02-12 16:33:03 +01:00
Jannis Mattheis 752d190fbc Add main app 2018-02-12 16:33:03 +01:00
Jannis Mattheis 3bac1ddadc Add config 2018-02-12 16:33:03 +01:00
Jannis Mattheis 3592ffd1b9 Add router 2018-02-11 14:33:59 +01:00
Jannis Mattheis 8ad22b1280 Return user on create user 2018-02-11 14:33:59 +01:00
Jannis Mattheis 08dbacd71b Adjust authentication to also send 403 2018-02-11 14:33:59 +01:00
Jannis Mattheis 28584184b1 Formatting 2018-02-11 14:33:59 +01:00
Jannis Mattheis 082b054f4c Improve build time
The bcrypt hashing is really slow with enabled race condition checker,
therefore we exlcude it.
2018-02-11 12:09:12 +01:00
Jannis Mattheis 166d501c7c Add error handler 2018-02-11 12:09:12 +01:00
Jannis Mattheis bd612e520b Update dep file 2018-02-11 08:54:20 +01:00
Jannis Mattheis dffe12418b Add database wrapper 2018-02-11 08:54:20 +01:00
Jannis Mattheis e44970e684 Rename DeleteClientID to DeleteClientByID 2018-02-11 08:54:20 +01:00
Jannis Mattheis b8b15040f9 Adjust GetMessagesByUserAndApplication to GetMessagesByApplication 2018-02-11 08:54:20 +01:00
Jannis Mattheis bbb82bd2b0 Add user api 2018-02-10 23:11:24 +01:00
Jannis Mattheis 52b98a66c7 Update dep file 2018-02-08 19:52:58 +01:00
Jannis Mattheis b356393094 Add license 2018-02-08 19:52:58 +01:00
Jannis Mattheis 98b7bcc2d6 Add notify to message api 2018-02-08 19:52:58 +01:00
Jannis Mattheis 4e3d00ea98 Reorder imports 2018-02-08 19:52:58 +01:00
Jannis Mattheis a901e8cdbf Add race condition check for tests 2018-02-08 19:52:58 +01:00
Jannis Mattheis 38378d2c8c Add streaming api 2018-02-08 19:52:58 +01:00
Jannis Mattheis 7eed1703c5 Add unpatching the monkey (: 2018-02-08 19:52:58 +01:00
Jannis Mattheis ecdd7c51cd Rename model.Message#TokenID to ApplicationID 2018-02-01 18:49:12 +01:00
Jannis Mattheis 84f5f1cf03 Add monkey dependency & cleanup dep file 2018-02-01 18:49:12 +01:00
Jannis Mattheis 9178d2d08b Add message api 2018-02-01 18:49:12 +01:00
Jannis Mattheis 8e8705c6e5 Add tokenkey to the gin context 2018-02-01 18:49:12 +01:00
Jannis Mattheis 8dfb5c7a69 Add token api (app and client) 2018-01-30 18:59:42 +01:00
Jannis Mattheis fadf989158 Rename auth.Database methods 2018-01-28 15:56:28 +01:00
Jannis Mattheis 8051f159f1 Add README with badges 2018-01-28 15:56:28 +01:00
Jannis Mattheis 6770e6b654 Enable golint and fix golint-errors like adding documentation 2018-01-28 15:56:28 +01:00