assets

package
v0.0.0-...-1f95488 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2014 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControllerCreateAsset

func ControllerCreateAsset(w http.ResponseWriter, r *http.Request)

func ControllerDestroyAsset

func ControllerDestroyAsset(w http.ResponseWriter, r *http.Request)

func ControllerEditAsset

func ControllerEditAsset(w http.ResponseWriter, r *http.Request)

func ControllerNewAsset

func ControllerNewAsset(w http.ResponseWriter, r *http.Request)

func ControllerShowIndex

func ControllerShowIndex(w http.ResponseWriter, r *http.Request)

func ControllerUpdateAsset

func ControllerUpdateAsset(w http.ResponseWriter, r *http.Request)

func CreateAsset

func CreateAsset(asset *Asset) error

func DestroyAsset

func DestroyAsset(id int64) error

func GetDBConnection

func GetDBConnection() *sql.DB

func UpdateAsset

func UpdateAsset(asset *Asset) error

Types

type Asset

type Asset struct {
	Id       *int64 `schema:"-"`
	URL      string `schema:"url"`
	Name     string `schema:"name"`
	FileName string `schema:"filename"`
	IsImage  bool   `schema:"isimage"` // for determining if a thumbnail preview should be shown
}

func FindAsset

func FindAsset(id int64) Asset

func LoadStoredAssets

func LoadStoredAssets() []Asset

Jump to

Keyboard shortcuts

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