Documentation ¶
Index ¶
- func GetSize(file multipart.File) int64
- func ListenAndServe(addr string, patternHandlerMap PatternHandlerMap) (*http.ServeMux, error)
- func SaveAs(r *http.Request, saveAs SaveAsFunc) (int64, error)
- func SaveResponseAs(w http.ResponseWriter, r *http.Request, saveAsFunc SaveAsFunc)
- type PatternHandlerMap
- type SaveAsFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
func ListenAndServe(addr string, patternHandlerMap PatternHandlerMap) (*http.ServeMux, error)
func SaveResponseAs ¶
func SaveResponseAs(w http.ResponseWriter, r *http.Request, saveAsFunc SaveAsFunc)
Types ¶
type PatternHandlerMap ¶
type PatternHandlerMap map[string]func(http.ResponseWriter, *http.Request)
type SaveAsFunc ¶
type SaveAsFunc func(file multipart.File, header *multipart.FileHeader) string
Click to show internal directories.
Click to hide internal directories.