uploader

package
v0.0.0-...-1869de2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL