Documentation ¶
Index ¶
Constants ¶
View Source
const PAGE_LIMIT = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(url string, username string, password string, insecureSkipVerify bool) Connection
func (*Connection) DownloadPhoto ¶
func (c *Connection) DownloadPhoto(photoId int) (*string, error)
func (*Connection) ListFolder ¶
func (c *Connection) ListFolder() ([]Folder, error)
func (*Connection) ListPhotosInFolder ¶
func (c *Connection) ListPhotosInFolder(folderId int) ([]Photo, error)
func (*Connection) Login ¶
func (c *Connection) Login() error
type ListFolderResponse ¶
type ListPhotosResponse ¶
type LoginResponse ¶
type Photo ¶
type Photo struct { Id int `json:"id"` FolderId int `json:"folder_id"` FileName string `json:"filename"` Time int `json:"time"` Additional struct { Tag []struct { Id int `json:"id"` Name string `json:"name"` } `json:"tag"` Thumbnail struct { XL string `json:"xl"` CacheKey string `json:"cache_key"` } `json:"thumbnail"` } `json:"additional"` }
type TagActionResponse ¶
type TagActionResponse struct {
Success bool `json:"success"`
}
Click to show internal directories.
Click to hide internal directories.