Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTokenNotFound = errors.New("Ctrl server return not found")
View Source
var ValidErrTooLarge = errors.New("File too large")
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { // name for save to anteater Name string `json:"name,omitempty"` // type - image or file Type string `json:"type,omitempty"` // field name in form Field string `json:"field,omitempty"` // validate Valid *Valid `json:"valid,omitempty"` // file state State *FileState `json:"state,omitempty"` // Only for images // GIF, JPG, PNG Format string `json:"format,omitempty"` // image width Width int `json:"width,omitempty"` // image height Height int `json:"height,omitempty"` // image quality (for jpg) Quality int `json:"quality,omitempty"` // need crop Crop bool `json:"crop,omitempty"` // apply optimize for images (png only) Optimize bool `json:"optimize,omitempty"` }
type StatusError ¶
type StatusError struct {
Error *Error `json:"error,omitempty"`
}
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
func (*Uploader) TryRequest ¶
Click to show internal directories.
Click to hide internal directories.