2021-09-26 19:13:38 +00:00
|
|
|
package routes
|
|
|
|
|
|
|
|
import (
|
2021-09-27 10:10:19 +00:00
|
|
|
"context"
|
|
|
|
|
2021-09-26 19:13:38 +00:00
|
|
|
"github.com/Masterminds/squirrel"
|
|
|
|
"github.com/allegro/bigcache/v3"
|
|
|
|
"github.com/go-redis/redis/v8"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
"github.com/gojek/heimdall/v7/httpclient"
|
|
|
|
"github.com/jackc/pgx/v4/pgxpool"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Dependencies struct {
|
2021-09-27 10:10:19 +00:00
|
|
|
DB *pgxpool.Pool
|
|
|
|
Redis *redis.Client
|
|
|
|
Memory *bigcache.BigCache
|
|
|
|
HTTP *httpclient.Client
|
|
|
|
Query squirrel.StatementBuilderType
|
|
|
|
App *fiber.App
|
|
|
|
Context *context.Context
|
|
|
|
Cancel *context.CancelFunc
|
2021-09-26 19:13:38 +00:00
|
|
|
}
|