goroku

package
v0.0.0-...-49cf9ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2015 License: MIT, MIT Imports: 14 Imported by: 0

README

goroku

Circle CI

heroku library for golang

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFoundCloudinary = errors.New("not found cloudinary")
)

Functions

func Airbrake

func Airbrake(ctx context.Context) (*gobrake.Notifier, bool)

func CloseMongoDB

func CloseMongoDB(ctx context.Context) context.Context

func CloseRedis

func CloseRedis(ctx context.Context) context.Context

func GetHerokuRedisAddr

func GetHerokuRedisAddr() (addr string, password string)

func MongoDB

func MongoDB(ctx context.Context) (*mgo.Session, bool)

func MongoDBName

func MongoDBName() string

func MustMongoDB

func MustMongoDB(ctx context.Context) *mgo.Session

func MustRedis

func MustRedis(ctx context.Context) *redis.Client

func NewAirbrake

func NewAirbrake(ctx context.Context, env string) context.Context

func NewCloudinary

func NewCloudinary(ctx context.Context) context.Context

func OpenMongoDB

func OpenMongoDB(ctx context.Context) context.Context

func OpenRedis

func OpenRedis(ctx context.Context) context.Context

func Redis

func Redis(ctx context.Context) (*redis.Client, bool)

func WithMockMongoDB

func WithMockMongoDB()

Types

type CloudinaryService

type CloudinaryService struct {
	*gocloud.Service
}

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

func (c CloudinaryService) UploadStaticImage(path string, fileName string, data io.Reader) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL