storage

package
v0.0.0-...-d303eeb Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SQLITE3_DRIVER = "sqlite3"
	DB_LOCATION    = "data/analyzedata.sqlite"
)

Variables

View Source
var UploadedFileNotFound = errors.New("Could not find the requested file")

Functions

func GetDbConnection

func GetDbConnection() (*sql.DB, error)

Don't forget to close the connection when you're done with it

defer db.Close()

func PutUploadedFile

func PutUploadedFile(uuid string, originalFilename string, storagePathname string) error

Types

type Upload

type Upload struct {
	Id               int
	Uuid             string
	OriginalFilename string
	StoragePath      string
	UploadDate       string
}

func GetUploadedFile

func GetUploadedFile(uuid string) (Upload, error)

Jump to

Keyboard shortcuts

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