jokes-bapak2/api/app/v1/handler/builder.go

17 lines
433 B
Go
Raw Normal View History

package handler
import (
"jokes-bapak2-api/app/v1/platform/cache"
"jokes-bapak2-api/app/v1/platform/database"
"time"
"github.com/Masterminds/squirrel"
"github.com/gojek/heimdall/v7/httpclient"
)
2021-08-04 02:51:22 +00:00
var Psql = squirrel.StatementBuilder.PlaceholderFormat(squirrel.Dollar)
var Db = database.New()
var Redis = cache.New()
var Memory = cache.InMemory()
var Client = httpclient.NewClient(httpclient.WithHTTPTimeout(10 * time.Second))