Documentation ¶
Index ¶
- type ThumbFile
- func (this *ThumbFile) GetHeight() int
- func (this *ThumbFile) GetName() string
- func (this *ThumbFile) GetPath() string
- func (this *ThumbFile) GetShape() string
- func (this *ThumbFile) GetWidth() int
- func (this *ThumbFile) Process(original *UploadedFile) error
- func (this *ThumbFile) SetHeight(h int)
- func (this *ThumbFile) SetName(name string)
- func (this *ThumbFile) SetPath(path string) error
- func (this *ThumbFile) SetShape(shape string)
- func (this *ThumbFile) SetWidth(h int)
- type UploadedFile
- func (this *UploadedFile) Clean()
- func (this *UploadedFile) Dimensions() (int, int, error)
- func (this *UploadedFile) FileSize() (int64, error)
- func (this *UploadedFile) GetFilename() string
- func (this *UploadedFile) GetHash() string
- func (this *UploadedFile) GetMime() string
- func (this *UploadedFile) GetPath() string
- func (this *UploadedFile) GetThumbs() []*ThumbFile
- func (this *UploadedFile) IsGif() bool
- func (this *UploadedFile) IsJpeg() bool
- func (this *UploadedFile) IsPng() bool
- func (this *UploadedFile) SetFilename(filename string)
- func (this *UploadedFile) SetHash(hash string)
- func (this *UploadedFile) SetMime(mime string)
- func (this *UploadedFile) SetPath(path string)
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 (*ThumbFile) Process ¶
func (this *ThumbFile) Process(original *UploadedFile) error
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)
Click to show internal directories.
Click to hide internal directories.