models

package
v0.0.0-...-0020c3e Latest Latest
Warning

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

Go to latest
Published: May 16, 2016 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilePath

func FilePath(id string) string

Types

type Error

type Error struct {
	Error string `json:"error"`
}

func NewError

func NewError(txt string) *Error

type File

type File struct {
	Id       string `json:"id"`
	Filename string `json:"filename"`
}

func NewFile

func NewFile(f multipart.File, h *multipart.FileHeader) (*File, error)

func (*File) URL

func (f *File) URL(r *http.Request) string

Jump to

Keyboard shortcuts

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