Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultEndpoint = "https://photoslibrary.googleapis.com/v1/uploads"
DefaultEndpoint is the Google Photos endpoint for uploads.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileUploadItem ¶
type FileUploadItem string
FileUploadItem represents a local file.
func NewFileUploadItem ¶
func NewFileUploadItem(filePath string) (FileUploadItem, error)
NewFileUploadItem returns a FileUploadItem from the specified file path. The file path must exist, and it must be a file (not a folder).
func (FileUploadItem) Open ¶
func (m FileUploadItem) Open() (io.ReadSeeker, int64, error)
Open returns a stream. Caller should close it finally.
type UploadItem ¶
type UploadItem interface { // Open returns a stream. // Caller should close it finally. Open() (io.ReadSeeker, int64, error) // Name returns the filename. Name() string // Size returns the size (in bytes). Size() int64 }
UploadItem represents an uploadable item.
Click to show internal directories.
Click to hide internal directories.