Commit Graph

49 Commits

Author SHA1 Message Date
Michael Bumann
d4183c100b Add payinvoice endpoint 2022-01-20 01:57:31 +01:00
Michael Bumann
1db6f77dd9 Add check payment endpoint 2022-01-19 22:11:24 +01:00
Michael Bumann
93e74d125f Merge pull request #53 from getAlby/user-service
User service for all user related functions
2022-01-19 22:41:00 +02:00
Michael Bumann
6a8d4bd52c Merge pull request #50 from getAlby/getinfo
Add /getinfo endpoint
2022-01-19 22:39:55 +02:00
Michael Bumann
7bd74a69d8 User service for all user related functions 2022-01-19 21:16:20 +01:00
Michael Bumann
f625ef7efc Implement addinvoice call 2022-01-19 19:43:29 +01:00
Michael Bumann
9e772a95a8 Add missing ln service 2022-01-19 17:48:43 +01:00
kiwiidb
2915d4a094 fix 2 bugs in create user func 2022-01-19 16:59:10 +01:00
kiwiidb
8eef14fccc move service functions to service package 2022-01-19 16:10:55 +01:00
kiwiidb
6a8061e55f split up service 2022-01-19 16:02:53 +01:00
kiwiidb
cbf3cecb32 refactor create endpoint 2022-01-19 15:40:41 +01:00
kiwiidb
18f65e4546 refactor payinvoice 2022-01-19 15:32:22 +01:00
kiwiidb
55fda4d3f4 refactor auth and addinvoice 2022-01-19 15:25:07 +01:00
kiwiidb
b8fb826ea5 move config to lib 2022-01-19 14:40:27 +01:00
kiwiidb
ecd4894673 refactor balance 2022-01-19 14:18:34 +01:00
kiwiidb
5c3e3b2a30 throw away useless context 2022-01-19 14:01:32 +01:00
kiwiidb
7a2baa6000 rename service file 2022-01-19 13:54:09 +01:00
kiwiidb
e22ab6ce49 rename context to service 2022-01-19 13:53:40 +01:00
Viktor Patchev
919affa2db Update package name to new repo 2022-01-18 10:42:53 +01:00
Michael Bumann
7c007791ec Setup LND connection 2022-01-17 22:37:40 +01:00
Michael Bumann
aabbfc33b5 Merge master and use correct lnd version 2022-01-17 18:45:47 +01:00
Viktor Patchev
2b1de4ba92 fix 2022-01-17 13:53:16 +01:00
Viktor Patchev
2bf39e0f97 Setup lnd grpc client 2022-01-17 12:53:47 +01:00
Michael Bumann
6478c6e0db Make JWT expiry configurable and require to set a JWT secret 2022-01-17 11:11:28 +01:00
Michael Bumann
1150ad6154 Merge remote-tracking branch 'getalby/main' into logging
* getalby/main:
  Minor fixes
2022-01-17 10:43:18 +01:00
Michael Bumann
f3a05ac268 Update log format
if no extension is given we add the date.
if an extension is given we use that path (assuming that's the exact file the user wants)
2022-01-17 10:39:14 +01:00
Michael Bumann
4cec10a999 Cleanup filename 2022-01-17 10:24:42 +01:00
Michael Bumann
236427b8e2 Use Echo logger 2022-01-17 10:22:02 +01:00
Michael Bumann
dd01815327 Limit for user find 2022-01-17 10:19:41 +01:00
Michael Bumann
698323a8d9 Echo logging 2022-01-17 10:19:17 +01:00
Viktor Patchev
a34fece550 Minor fixes 2022-01-17 09:50:37 +01:00
Michael Bumann
06410ec1de Use custom JWT claims and fix expiry 2022-01-17 07:48:46 +01:00
Roman Useinov
c5170a0a1e fix expiry and validate claims 2022-01-16 16:02:37 +00:00
Roman Useinov
e22c51f9f9 use DefaultConfig as base for JWT 2022-01-16 14:14:53 +00:00
Roman Useinov
e7e5904829 UserMiddleware added 2022-01-16 14:02:58 +00:00
Roman Useinov
6c6e647cb6 fix naming after rebase 2022-01-16 13:27:16 +00:00
Michael Bumann
1b347c5177 Move JWT middleware config to tokens and load UserId into the context 2022-01-16 13:26:42 +00:00
Michael Bumann
b1dd3012fd Remove sensitive data from JWT and add expiry 2022-01-16 13:26:42 +00:00
Michael Bumann
95512462f6 Cleanup typos (#28)
* Typo

* Typoc
2022-01-16 14:13:45 +01:00
Roman Useinov
628071160c Cleanup (#25)
* remove cmd folder as we are going to have only one entrypoint

* get rid of pkg directory

* rename test -> integration_tests as unit tests should reside next to the actual files they are testing

* database migration WIP

* reinstate gorm boilerplate in the addinvoice for now to make it compile

* introduce migrations

* add Makefile

* don't use unsigned types for database mappings

* migrations work now

* add build target

* use echo groups

* gorm removed

* add envconfig

* fix comments
2022-01-16 00:49:19 +01:00
Viktor Patchev
1ee2bdb909 Change folder structure 2022-01-10 21:15:30 +01:00
Viktor Patchev
76cc532079 NullString fixes 2022-01-09 15:47:45 +01:00
Viktor Patchev
c96e9958e8 Merge pull request #17 from bumi/learning
Learning
2022-01-08 21:41:09 +01:00
Viktor Patchev
64430c43c2 Remove code leftovers 2022-01-08 18:36:11 +01:00
Michael Bumann
2223ef41d9 User model updates
also use sql.NullString to set access/refresh token
2022-01-08 18:03:06 +01:00
Viktor Patchev
47d8b70429 Add tokens in separate directory 2022-01-08 12:14:52 +01:00
Viktor Patchev
b86e4fa54b Update access token in db and add loggedIn middleware 2022-01-06 18:43:42 +01:00
Viktor Patchev
6c3ff64836 Update to newer gorm version 2022-01-06 11:09:01 +01:00
Viktor Patchev
a8e8b15e79 Setting up the project 2022-01-04 23:25:29 +01:00