Documentation ¶
Index ¶
- Variables
- func Airbrake(ctx context.Context) (*gobrake.Notifier, bool)
- func CloseMongoDB(ctx context.Context) context.Context
- func CloseRedis(ctx context.Context) context.Context
- func GetHerokuRedisAddr() (addr string, password string)
- func MongoDB(ctx context.Context) (*mgo.Session, bool)
- func MongoDBName() string
- func MustMongoDB(ctx context.Context) *mgo.Session
- func MustRedis(ctx context.Context) *redis.Client
- func NewAirbrake(ctx context.Context, env string) context.Context
- func NewCloudinary(ctx context.Context) context.Context
- func OpenMongoDB(ctx context.Context) context.Context
- func OpenRedis(ctx context.Context) context.Context
- func Redis(ctx context.Context) (*redis.Client, bool)
- func WithMockMongoDB()
- type CloudinaryService
- func (c CloudinaryService) DeleteStaticImage(path string, fileName string) error
- func (c CloudinaryService) ResourceURL(fileName string) string
- func (c CloudinaryService) Resources() ([]*gocloud.Resource, error)
- func (c CloudinaryService) UploadStaticImage(path string, fileName string, data io.Reader) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NotFoundCloudinary = errors.New("not found cloudinary")
)
Functions ¶
func GetHerokuRedisAddr ¶
func MongoDBName ¶
func MongoDBName() string
func MustMongoDB ¶
func WithMockMongoDB ¶
func WithMockMongoDB()
Types ¶
type CloudinaryService ¶
func Cloudinary ¶
func Cloudinary(ctx context.Context) CloudinaryService
func (CloudinaryService) DeleteStaticImage ¶
func (c CloudinaryService) DeleteStaticImage(path string, fileName string) error
func (CloudinaryService) ResourceURL ¶
func (c CloudinaryService) ResourceURL(fileName string) string
func (CloudinaryService) Resources ¶
func (c CloudinaryService) Resources() ([]*gocloud.Resource, error)
func (CloudinaryService) UploadStaticImage ¶
Click to show internal directories.
Click to hide internal directories.