jokes-bapak2/api/handler/joke/dependencies.go

16 lines
302 B
Go
Raw Normal View History

package joke
import (
"github.com/allegro/bigcache/v3"
"github.com/go-redis/redis/v8"
2022-09-03 10:53:46 +00:00
"github.com/minio/minio-go/v7"
)
2022-09-03 14:29:52 +00:00
// Dependencies provides a struct for dependency injection
// on joke package
type Dependencies struct {
Redis *redis.Client
Memory *bigcache.BigCache
2022-09-03 10:53:46 +00:00
Bucket *minio.Client
}