Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCreateFolder ¶
CheckCreateFolder Given a destination automatically create a folder if it doesn't exist and return path of that folder
func FileDownload ¶
func FileDownload(filename, url, token string)
FileDownload Given a filename and url, this method will attempt to download a file to a given named location
func PasswordCreator ¶
PasswordCreator will encrypt a new password giving a base64 version of the ciphertext:key
func PasswordDecryptor ¶
PasswordDecryptor will accept a base64 string of ciphertext:key and decrypt to plain text
Types ¶
type WriteCounter ¶
type WriteCounter struct {
// contains filtered or unexported fields
}
WriteCounter counts the number of bytes written to it. It implements to the io.Writer interface and we can pass this into io.TeeReader() which will report progress on each write cycle.
func (*WriteCounter) Finish ¶
func (wc *WriteCounter) Finish()
Finish finishes the timer of writing the file
func (*WriteCounter) Start ¶
func (wc *WriteCounter) Start()
Start starts the timer of writing the file