Leo Balduf
0936bd3f9a
cmd/chihaya: fix imports for updated goimports
2019-10-17 12:51:53 +09:00
Jimmy Zelinskie
3e334b9536
storage: remove memorybysubnet
...
This code, while interesting, was only relevant to Facebook and they use
their own fork that they maintain. There was not enough outside
interest to warrant maintaining. I'd rather us use the effort to support
a redis storage backend instead.
2019-02-13 19:44:04 -05:00
duyanghao
e78892d5ac
Add Support for Redis Storage Backend(To Achieve Chihaya High Availability)
...
Change-Id: I5cf703095d1060ac17e403b86056d3eccad97f2c
Signed-off-by: duyanghao <1294057873@qq.com>
2019-01-03 17:21:13 +08:00
onestraw
e09d11e4b9
fix goimports error
...
Change-Id: I0f6e383ec1081cc47c690fdaab3fd35590a2634b
2018-12-17 16:59:44 +08:00
Justin Li
3c80ed8a8e
Fix goimports violations
2018-10-24 09:25:03 -04:00
Pierre-Alain TORET
82c9f08f4f
middleware : add torrent approval package
...
this makes it possible to specify a torrent whitelist/blacklist in the
configuration file based on their hexadecimal hash.
Fixes #375
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-09-19 14:11:13 +02:00
Jimmy Zelinskie
7dbbc86380
middleware: add a registration model
2017-12-29 16:55:48 -05:00
Jimmy Zelinskie
effb05103a
cmd/chihaya: remove extra registration of storages
2017-06-04 16:42:32 -04:00
Jimmy Zelinskie
496cc1a31d
storage: dynamically register drivers
2017-06-03 15:47:58 -04:00
Cedric Charly
86197a258c
cmd/chihaya: log hook names on startup
...
Replace logging memory addresses with actual hook names.
Closes #317
2017-06-02 20:56:29 -05:00
Jimmy Zelinskie
ea0dba3a3d
cmd/chihaya: refactor root run command
...
This change refactors a bunch of the state of execution into its own
object. It also attempts to simplify stopping and adjusts some other
packages to integrate with the stopper interface.
Fixes #309 .
2017-05-01 15:56:38 -04:00
Leo Balduf
fe8c74bd9c
middleware: add varinterval
2016-12-16 14:19:02 +01:00
Ye Yin
3932ca8971
Fix configure file parse
2016-10-12 19:44:52 +08:00
Jimmy Zelinskie
46bd349a23
jwt: add initial jwt update
...
This also changes the signature of the constructor to return an error.
2016-09-26 21:31:34 -04:00
Jimmy Zelinskie
7ca15e9943
middleware: add blacklist support
2016-09-01 20:49:15 -04:00
Jimmy Zelinskie
e39da6b4e6
main: add CreateHooks() method for ConfigFile
...
This change simplifies middleware.Logic to having only one list of
PreHooks and one list of PostHooks.
2016-09-01 19:48:49 -04:00
Jimmy Zelinskie
9dc5372796
cmd: pull closure out into its own func
...
Also introduce a config.go.
2016-08-24 20:01:06 -04:00