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
Jannis Mattheis
a520ab28c9
Add travisci config
2018-01-27 21:32:16 +01:00
Jannis Mattheis
11422e53a8
Add golang dep configs
2018-01-27 21:03:34 +01:00
Jannis Mattheis
aa66e9792b
Add auth util for saving the user in the ctx
2018-01-27 20:31:56 +01:00
Jannis Mattheis
8a989dc29a
Remove token and add app and client token & Adjust tests
2018-01-27 20:31:56 +01:00
Jannis Mattheis
662e1f4fb5
Add authentication middleware
2018-01-23 18:03:51 +01:00
Jannis Mattheis
d76ab85396
Add models
2018-01-23 18:03:51 +01:00
Jannis Mattheis
55b1508fd7
Add gitignore
2018-01-19 22:49:42 +01:00