Documentation ¶
Index ¶
- func DownloadAndEncode(urlAWS string) (string, error)
- func DownloadAndUploadToCloud(filepath string, url string) (string, error)
- func SearchPhotosByWord(word, page string) (*[]*Photos, error, int, int)
- func SendSMS(message, phone string) (bool, error)
- func ToSha512(str []byte) string
- type PhotoResponse
- type Photos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAndEncode ¶
Types ¶
type PhotoResponse ¶
type PhotoResponse struct { Total int `json:"total"` TotalPages int `json:"total_pages"` Results []struct { ID string `json:"id"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` PromotedAt interface{} `json:"promoted_at"` Width int `json:"width"` Height int `json:"height"` Color string `json:"color"` BlurHash string `json:"blur_hash"` Description interface{} `json:"description"` AltDescription string `json:"alt_description"` Urls struct { Raw string `json:"raw"` Full string `json:"full"` Regular string `json:"regular"` Small string `json:"small"` Thumb string `json:"thumb"` } `json:"urls"` Links struct { Self string `json:"self"` HTML string `json:"html"` Download string `json:"download"` DownloadLocation string `json:"download_location"` } `json:"links"` Categories []interface{} `json:"categories"` Likes int `json:"likes"` LikedByUser bool `json:"liked_by_user"` CurrentUserCollections []interface{} `json:"current_user_collections"` Sponsorship interface{} `json:"sponsorship"` User struct { ID string `json:"id"` UpdatedAt string `json:"updated_at"` Username string `json:"username"` Name string `json:"name"` FirstName string `json:"first_name"` LastName string `json:"last_name"` TwitterUsername interface{} `json:"twitter_username"` PortfolioURL string `json:"portfolio_url"` Bio string `json:"bio"` Location interface{} `json:"location"` Links struct { Self string `json:"self"` HTML string `json:"html"` Photos string `json:"photos"` Likes string `json:"likes"` Portfolio string `json:"portfolio"` Following string `json:"following"` Followers string `json:"followers"` } `json:"links"` ProfileImage struct { Small string `json:"small"` Medium string `json:"medium"` Large string `json:"large"` } `json:"profile_image"` InstagramUsername interface{} `json:"instagram_username"` TotalCollections int `json:"total_collections"` TotalLikes int `json:"total_likes"` TotalPhotos int `json:"total_photos"` AcceptedTos bool `json:"accepted_tos"` } `json:"user"` Tags []struct { Type string `json:"type"` Title string `json:"title"` } `json:"tags"` } `json:"results"` }
Click to show internal directories.
Click to hide internal directories.