Documentation ¶
Index ¶
- Constants
- Variables
- func Actions() map[string]Action
- func GetFlickrFeedAction(args []string) (interface{}, error)
- func GetGithubActivity() (*rss.Feed, error)
- func GetGithubActivityAction(args []string) (interface{}, error)
- func GetGithubCode(length int) (interface{}, error)
- func GetGithubCodeAction(args []string) (interface{}, error)
- func GetGithubRepos() (interface{}, error)
- func GetGithubReposAction(args []string) (interface{}, error)
- func GetInstagramActivity() (*rss.Feed, error)
- func GetInstagramActivityAction(args []string) (interface{}, error)
- func GetKeybaseProfileAction(args []string) (interface{}, error)
- func GetLatestBlogPostsAction(args []string) (interface{}, error)
- func GetManfredTouronAction(args []string) (interface{}, error)
- func GetTwitterFollowersList() (interface{}, error)
- func GetTwitterFollowersListAction(args []string) (interface{}, error)
- func GetTwitterLastTweets() (interface{}, error)
- func GetTwitterLastTweetsAction(args []string) (interface{}, error)
- func RegisterAction(name string, action Action)
- type Action
- type FlickrEntry
- type FlickrResponse
- type KeybaseProof
- type KeybaseResponse
- type KeybaseUser
- type TumblrEntry
- type TumblrResponse
Constants ¶
View Source
const FlickrFeedURL = "https://api.flickr.com/services/feeds/photos_public.gne?format=json&id=38994875@N06"
View Source
const KeybaseLookupURL = "https://keybase.io/_/api/1.0/user/lookup.json?usernames=moul"
View Source
const TumblrFeedURL = "https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&q=http://manfredtouron.tumblr.com/rss"
Variables ¶
View Source
var ActionsMap map[string]Action
Functions ¶
func GetFlickrFeedAction ¶
func GetGithubActivity ¶
func GetGithubActivityAction ¶
func GetGithubCode ¶
func GetGithubCodeAction ¶
func GetGithubRepos ¶
func GetGithubRepos() (interface{}, error)
func GetGithubReposAction ¶
func GetInstagramActivity ¶
func GetKeybaseProfileAction ¶
func GetManfredTouronAction ¶
func GetTwitterFollowersList ¶
func GetTwitterFollowersList() (interface{}, error)
func GetTwitterLastTweets ¶
func GetTwitterLastTweets() (interface{}, error)
func RegisterAction ¶
Types ¶
type FlickrEntry ¶
type FlickrEntry struct { Title string `json:"title"` Link string `json:"link"` Media struct { M string `json:"m"` } `json:"media"` DateTaken string `json:"date_taken"` Description string `json:"description"` Published string `json:"published"` Author string `json:"author"` AuthorID string `json:"author_id"` Tags string `json:"tags"` }
type FlickrResponse ¶
type FlickrResponse struct { Title string `json:"title"` Link string `json:"link"` Description string `json:"description"` Modified string `json:"modified"` Generator string `json:"generator"` Items []FlickrEntry `json:"items"` }
func GetFlickrFeed ¶
func GetFlickrFeed() (*FlickrResponse, error)
type KeybaseProof ¶
type KeybaseProof struct { HumanURL string `json:"human_url"` Nametag string `json:"nametag"` PresentationGroup string `json:"presentation_group"` PresentationTag string `json:"presentation_tag"` ProofID string `json:"proof_id"` ProofType string `json:"proof_type"` ProofURL string `json:"proof_url"` ServiceURL string `json:"service_url"` SigID string `json:"sig_id"` State int `json:"state"` }
type KeybaseResponse ¶
type KeybaseResponse struct { Status struct { Code int Name string } Them []KeybaseUser }
type KeybaseUser ¶
type KeybaseUser struct { Basics struct { Ctime int `json:"ctime"` IDVersion int `json:"id_version"` LastIDChange int `json:"last_id_change"` Mtime int `json:"mtime"` TrackVersion int `json:"track_version"` Username string `json:"username"` UsernameCased string `json:"username_cased"` } `json:"basics"` CryptocurrencyAddresses map[string][]struct { Address string `json:"address"` SigID string `json:"sig_id"` } `json:"cryptocurrency_addresses"` Devices struct{} `json:"devices"` ID string `json:"id"` Pictures map[string]struct { Height int `json:"height"` Source string `json:"source"` URL string `json:"url"` Width int `json:"width"` } `json:"pictures"` Profile struct { Bio string `json:"bio"` FullName string `json:"full_name"` Location string `json:"location"` Mtime int `json:"mtime"` } `json:"profile"` ProofsSummary struct { All []KeybaseProof `json:"all"` ByPresentationGroup map[string][]KeybaseProof `json:"by_presentation_group"` ByProofType map[string][]KeybaseProof `json:"by_proof_type"` } `json:"proofs_summary"` PublicKeys struct { AllBundles []string `json:"all_bundles"` EldestKeyFingerprint string `json:"eldest_key_fingerprint"` EldestKid string `json:"eldest_kid"` Families map[string][]string `json:"families"` PgpPublicKeys []string `json:"pgp_public_keys"` Primary struct { Bundle string `json:"bundle"` Ctime int `json:"ctime"` EldestKid interface{} `json:"eldest_kid"` Etime int `json:"etime"` KeyAlgo int `json:"key_algo"` KeyBits int `json:"key_bits"` KeyFingerprint string `json:"key_fingerprint"` KeyLevel int `json:"key_level"` KeyType int `json:"key_type"` Kid string `json:"kid"` Mtime int `json:"mtime"` SelfSigned bool `json:"self_signed"` SigningKid string `json:"signing_kid"` Status int `json:"status"` Ukbid string `json:"ukbid"` } `json:"primary"` Sibkeys []string `json:"sibkeys"` Subkeys []interface{} `json:"subkeys"` } `json:"public_keys"` Sigs struct { Last struct { PayloadHash string `json:"payload_hash"` Seqno int `json:"seqno"` SigID string `json:"sig_id"` } `json:"last"` } `json:"sigs"` }
func GetKeybaseProfile ¶
func GetKeybaseProfile() (*KeybaseUser, error)
type TumblrEntry ¶
type TumblrResponse ¶
type TumblrResponse struct { ResponseData struct { Feed struct { FeedURL string Title string Link string Author string Description string Type string Entries []TumblrEntry } } // ResponseDetails ResponseStatus int }
func GetLatestBlogPosts ¶
func GetLatestBlogPosts() (*TumblrResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.