1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-11-28 08:39:13 +02:00
Commit Graph

173 Commits

Author SHA1 Message Date
Niko Köser
42649bac4f
fix(service): make whatsapp no-op (#438) 2022-10-25 09:00:35 +02:00
Niko Köser
ce792a210b
sec(codeql): fix potential cross-site scripting vulnerability (#427) 2022-10-19 08:54:28 +02:00
Arno Cornette
d2dfd10850
feat(service): add matrix service (#410)
* feat(service): implemented matrix service

* docs(readme): add matrix service

* chore(format) Reformatted with gofumpt

* docs(readme): updated readme and added doc

* chore(rename): Rename functions to be compliant with project style

* chore(formatting): Reformatted docs

* docs(changes): Modified the service and path to it in the documentation.

* chore(format): Reformated with Gofump
2022-10-04 18:01:09 +03:00
Niko Köser
b8bf94fc44
style(fmt): make fmt 2022-09-12 16:54:09 +02:00
Niko Köser
3c51987712
refactor(service): make most amazon_sns types unexported 2022-09-12 16:53:16 +02:00
Stefanos Valoumas
528ac06195 chore: gofumpt changes 2022-09-12 15:16:10 +03:00
Stefanos Valoumas
0c8245d5d7 test: apply test conventions for whatsapp service 2022-09-12 15:05:19 +03:00
Stefanos Valoumas
29809e50f8 test: apply test conventions for wechat service 2022-09-12 15:03:28 +03:00
Stefanos Valoumas
ecaa74abdc test: apply test conventions for twilio service 2022-09-12 14:57:33 +03:00
Stefanos Valoumas
e9cf4be631 test: apply test conventions for syslog service 2022-09-12 14:55:24 +03:00
Stefanos Valoumas
2035e817a9 test: apply test conventions for slack service 2022-09-12 14:50:22 +03:00
Stefanos Valoumas
74d4576a63 test: apply test conventions for plivo service 2022-09-12 14:49:36 +03:00
Stefanos Valoumas
8af0b6ab8f test: apply test conventions for msteams service 2022-09-12 14:47:50 +03:00
Stefanos Valoumas
525374307c test: apply test conventions for lark service 2022-09-12 14:46:36 +03:00
Stefanos Valoumas
6ec42ebdc4 test: apply test conventions for fcm service 2022-09-12 14:46:32 +03:00
Stefanos Valoumas
6ad3b2e4d5 test: apply test conventions for discord service 2022-09-12 14:46:23 +03:00
Stefanos Valoumas
3a57b6d347 test: apply test conventions for amazon sns service 2022-09-12 14:33:25 +03:00
Niko Köser
3a416217b8
chore(deps): remove unused package 2022-09-12 12:55:24 +02:00
Niko Köser
b57c5d6fe0
chore(naming): change test func signature
Co-authored-by: Stefanos Valoumas <36260347+svaloumas@users.noreply.github.com>
2022-09-12 12:51:20 +02:00
Niko Köser
928b47646a
refactor(test): simplify comparison
Co-authored-by: Stefanos Valoumas <36260347+svaloumas@users.noreply.github.com>
2022-09-12 12:49:07 +02:00
Niko Köser
50409bb549
refactor(constructor): simplify returning service 2022-09-12 08:50:15 +02:00
Niko Köser
2ee90ea8db
test(service): add mocks and tests for slack 2022-09-12 08:47:01 +02:00
Niko Köser
dfcad9d78d
test(service): add mocks and tests for discord 2022-09-12 08:46:37 +02:00
Niko Köser
4f76f7ed4c
test(service): add mocks and tests for amazonses 2022-09-12 08:45:52 +02:00
Niko Köser
17d7077484
test(service): add mocks and tests of msteams 2022-09-12 08:45:04 +02:00
Niko Köser
fd735dac9c
style(naming): simplify import alias for msteams library 2022-09-12 08:42:38 +02:00
Niko Köser
df3fb4c19d
fix(lint): export types that are being returned by some methods 2022-08-31 08:23:42 +02:00
Niko Köser
f4001356e0
style(fmt): make fmt 2022-08-05 10:39:34 +02:00
Niko Köser
541fdf294b
Merge branch 'main' into main 2022-08-05 10:21:01 +02:00
Niko Köser
96096f17d6
Merge branch 'main' into feat/lark 2022-08-05 10:15:37 +02:00
Niko Köser
a10eeb9247
refactor(lint): apply golangci-lint recommendations 2022-08-04 17:13:17 +02:00
Niko Köser
82cc699565
chore(filestructure): extract mocks folder to follow repo scheme 2022-08-04 17:12:33 +02:00
Niko Köser
3d5eab4b32
Merge branch 'main' into feat/lark 2022-08-04 16:58:45 +02:00
Niko Köser
7da65bd301
Merge branch 'main' into main 2022-08-04 16:52:39 +02:00
Niko Köser
23d72681c3
style(fmt): make fmt 2022-08-04 16:43:37 +02:00
Niko Köser
d4f314ce5a
Merge branch 'main' into feature/add-twilio-service 2022-08-04 16:38:29 +02:00
Niko Köser
1167ab9b7d
style(fmt): make fmt 2022-08-04 15:58:38 +02:00
Niko Köser
f433aedcb5
refactor(sec): add ReadHeaderTimeout to verification server
WaitForOneOffVerification now uses a ReadHeaderTimeout of 20 seconds by
default. This is to avoid potential slow loris attacks which means
blocking a connection for too long. In case that the user wants to
provide a custom timeout, I added the
WaitForOneOffVerificationWithServer method. It works identical to
WaitForOneOffVerification with the subtle difference that the user can
pass in a fully customized http.Server instance.

This closes gosec G112.
2022-08-04 15:49:58 +02:00
Niko Köser
853dbd58d3
chore(lint): replace ioutil.ReadAll with io.ReadAll 2022-08-04 15:39:12 +02:00
qwqcode
f1786ba832
chore: ParseMode const following the tgbotapi lib 2022-06-06 18:03:47 +08:00
qwqcode
d69cdd2863
feat: add SetParseMode function for Telegram
Signed-off-by: qwqcode <qwqcode@gmail.com>
2022-06-06 17:43:18 +08:00
Stefanos Valoumas
2879767e3a feat(service): add twilio 2022-06-06 10:40:23 +03:00
junyi
984a69eb79 feat(service): add lark service 2022-06-05 23:24:33 +08:00
Stefanos Valoumas
a38dbb0c2c feat(service): add fcm 2022-05-08 12:56:01 +03:00
Niko Köser
8f2b3d1fc1
chore(deps): remove unused deps 2022-04-25 14:30:01 +02:00
ᴍᴏᴏɴD4ʀᴋ
e257c5bf5f
update service/bark/bark.go
Co-authored-by: Niko Köser <koeserniko@gmail.com>
2022-04-25 13:36:31 +08:00
ᴍᴏᴏɴD4ʀᴋ
4d485b3ea3 fix: use default server url 2022-04-23 23:52:32 +08:00
ᴍᴏᴏɴD4ʀᴋ
7bd80b076c fix: bark pushURL wrong schema 2022-04-23 23:51:42 +08:00
Niko Köser
db2e5884c2
refactor(service): normalize and clean-up bark service 2022-04-23 16:12:57 +02:00
ᴍᴏᴏɴD4ʀᴋ
8fdd3c24dc fix: use custom http client to send request 2022-04-23 20:23:48 +08:00