Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileReq ¶
func NewFileReq(source UplRequestSrc) (*http.Request, error)
NewFileReq creates a http request with the necessary data to upload a file to a server over http
Types ¶
type UplRequestSrc ¶
type UplRequestSrc struct { Endpoint string FileParameter string Path string FileName string Status error }
UplRequestSrc define the necessary data for a file upload http request to be created.
func NewUplRequestSrc ¶
func NewUplRequestSrc( uri, fileParam, path, fileName string, ) ( UplRequestSrc, error, )
NewUplRequestSrc create a populated UplRequestSrc object
Click to show internal directories.
Click to hide internal directories.