services

package
v0.0.0-...-16bba25 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCPServiceInterface

type GCPServiceInterface interface {
	Delete(context.Context, *storage.ObjectHandle) error
	Get(context.Context, *storage.ObjectHandle) ([]byte, error)
	Upload(context.Context, *storage.ObjectHandle, multipart.File) (*url.URL, error)
}

GCPServiceInterface interface

var (
	// GCPService exported gcp service
	GCPService GCPServiceInterface = &gcpService{}
)

type ImageServiceInterface

type ImageServiceInterface interface {
	Upload(multipart.File, multipart.FileHeader) (string, int, error)
}

ImageServiceInterface interface

var (
	// ImageService exported image service
	ImageService ImageServiceInterface = &imageService{}
)

Jump to

Keyboard shortcuts

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