jokes-bapak2/api/app/handler/submit/dependencies.go

21 lines
415 B
Go
Raw Normal View History

package submit
import (
2021-09-27 10:10:19 +00:00
"context"
"github.com/Masterminds/squirrel"
"github.com/allegro/bigcache/v3"
"github.com/go-redis/redis/v8"
"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
Context *context.Context
}