mirror of
https://github.com/grassrootseconomics/eth-tracker.git
synced 2026-05-15 01:39:55 +02:00
refactor: Decouple router and handlers (#31)
* refactor: decouple router to allow adding custom log and input data handlers * feat: refactor handlers * devops: update service build args * chore: cleanup unecessary files/code
This commit is contained in:
13
internal/handler/handler.go
Normal file
13
internal/handler/handler.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package handler
|
||||
|
||||
import "github.com/grassrootseconomics/celo-tracker/internal/cache"
|
||||
|
||||
type HandlerContainer struct {
|
||||
cache cache.Cache
|
||||
}
|
||||
|
||||
func New(cacheProvider cache.Cache) *HandlerContainer {
|
||||
return &HandlerContainer{
|
||||
cache: cacheProvider,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user