Documentation ¶
Overview ¶
Package internal is a thin wrapper of Google Photos Library API, providing error handling and retrying.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRetryableError ¶
IsRetryableError returns true if the error is retryable, such as status code is 5xx or network error occurs. Otherwise returns false. See https://developers.google.com/photos/library/guides/best-practices#retrying-failed-requests
func IsRetryableStatusCode ¶
IsRetryableStatusCode returns true if the status code is retryable, such as status code is 5xx or network error occurs. Otherwise returns false. See https://developers.google.com/photos/library/guides/best-practices#retrying-failed-requests
Types ¶
type Photos ¶
type Photos interface {
// contains filtered or unexported methods
}
Photos provides Google Photos Library service.
type UploadItem ¶
type UploadItem interface { // Open returns a stream. // Caller should close it finally. Open() (io.ReadCloser, int64, error) // Name returns the filename. Name() string // String returns the full name, e.g. path or URL. String() string }
UploadItem represents an uploadable item.