Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSUploader ¶
type FSUploader struct {
// contains filtered or unexported fields
}
FSUploader is FS uploader instance
func NewUploader ¶
func NewUploader(config *Config) (*FSUploader, error)
NewUploader creates new FS uploader instance
func (*FSUploader) SetDispatcher ¶
func (u *FSUploader) SetDispatcher(d *events.Dispatcher)
SetDispatcher sets events dispatcher
func (*FSUploader) Upload ¶
func (u *FSUploader) Upload(file, fileName string) error
Upload uploads given file to storage
func (*FSUploader) Write ¶ added in v0.0.2
func (u *FSUploader) Write(r io.ReadCloser, fileName string, fileSize int64) error
Write writes data from given reader to given file
Click to show internal directories.
Click to hide internal directories.