uploader

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpMediaUploader

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

func NewHttpMediaUploader

func NewHttpMediaUploader(authenticatedClient *http.Client) HttpMediaUploader

func (HttpMediaUploader) UploadFile

func (h HttpMediaUploader) UploadFile(filePath string, ctx context.Context) (string, error)

Uploads file specified by path. Returns upload token

Doc: https://developers.google.com/photos/library/guides/upload-media

type MediaUploader

type MediaUploader interface {
	UploadFile(filePath string, ctx context.Context) (string, error)
}

Jump to

Keyboard shortcuts

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