uploadedfile

package
v0.0.0-...-9537a75 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ThumbFile

type ThumbFile struct {
	// contains filtered or unexported fields
}

func NewThumbFile

func NewThumbFile(width, height int, name, shape, path string) *ThumbFile

func (*ThumbFile) GetHeight

func (this *ThumbFile) GetHeight() int

func (*ThumbFile) GetName

func (this *ThumbFile) GetName() string

func (*ThumbFile) GetPath

func (this *ThumbFile) GetPath() string

func (*ThumbFile) GetShape

func (this *ThumbFile) GetShape() string

func (*ThumbFile) GetWidth

func (this *ThumbFile) GetWidth() int

func (*ThumbFile) Process

func (this *ThumbFile) Process(original *UploadedFile) error

func (*ThumbFile) SetHeight

func (this *ThumbFile) SetHeight(h int)

func (*ThumbFile) SetName

func (this *ThumbFile) SetName(name string)

func (*ThumbFile) SetPath

func (this *ThumbFile) SetPath(path string) error

func (*ThumbFile) SetShape

func (this *ThumbFile) SetShape(shape string)

func (*ThumbFile) SetWidth

func (this *ThumbFile) SetWidth(h int)

type UploadedFile

type UploadedFile struct {
	// contains filtered or unexported fields
}

func NewUploadedFile

func NewUploadedFile(filename, path string, thumbs []*ThumbFile) (*UploadedFile, error)

func (*UploadedFile) Clean

func (this *UploadedFile) Clean()

func (*UploadedFile) Dimensions

func (this *UploadedFile) Dimensions() (int, int, error)

func (*UploadedFile) FileSize

func (this *UploadedFile) FileSize() (int64, error)

func (*UploadedFile) GetFilename

func (this *UploadedFile) GetFilename() string

func (*UploadedFile) GetHash

func (this *UploadedFile) GetHash() string

func (*UploadedFile) GetMime

func (this *UploadedFile) GetMime() string

func (*UploadedFile) GetPath

func (this *UploadedFile) GetPath() string

func (*UploadedFile) GetThumbs

func (this *UploadedFile) GetThumbs() []*ThumbFile

func (*UploadedFile) IsGif

func (this *UploadedFile) IsGif() bool

func (*UploadedFile) IsJpeg

func (this *UploadedFile) IsJpeg() bool

func (*UploadedFile) IsPng

func (this *UploadedFile) IsPng() bool

func (*UploadedFile) SetFilename

func (this *UploadedFile) SetFilename(filename string)

func (*UploadedFile) SetHash

func (this *UploadedFile) SetHash(hash string)

func (*UploadedFile) SetMime

func (this *UploadedFile) SetMime(mime string)

func (*UploadedFile) SetPath

func (this *UploadedFile) SetPath(path string)

Jump to

Keyboard shortcuts

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