rainbond: github.com/goodrain/rainbond/api/controller/upload Index | Files

package upload

import "github.com/goodrain/rainbond/api/controller/upload"

Index

Package Files

attachment.go body.go dir.go file_default_manager.go file_manager.go meta.go upload.go web.go

type Storage Uses

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

func NewStorage Uses

func NewStorage(rootDir string) *Storage

func (*Storage) StorageDir Uses

func (s *Storage) StorageDir() string

func (*Storage) UploadHandler Uses

func (s *Storage) UploadHandler(w http.ResponseWriter, r *http.Request)

UploadHandler is the endpoint for uploading and storing files.

Package upload imports 16 packages (graph) and is imported by 1 packages. Updated 2019-04-04. Refresh now. Tools for package owners.