moul

package module
v0.0.0-...-64144e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 Actions

func Actions() map[string]Action

func GetFlickrFeedAction

func GetFlickrFeedAction(args []string) (interface{}, error)

func GetGithubActivity

func GetGithubActivity() (*rss.Feed, error)

func GetGithubActivityAction

func GetGithubActivityAction(args []string) (interface{}, error)

func GetGithubCode

func GetGithubCode(length int) (interface{}, error)

func GetGithubCodeAction

func GetGithubCodeAction(args []string) (interface{}, error)

func GetGithubRepos

func GetGithubRepos() (interface{}, error)

func GetGithubReposAction

func GetGithubReposAction(args []string) (interface{}, error)

func GetInstagramActivity

func GetInstagramActivity() (*rss.Feed, error)

func GetInstagramActivityAction

func GetInstagramActivityAction(args []string) (interface{}, error)

func GetKeybaseProfileAction

func GetKeybaseProfileAction(args []string) (interface{}, error)

func GetLatestBlogPostsAction

func GetLatestBlogPostsAction(args []string) (interface{}, error)

func GetManfredTouronAction

func GetManfredTouronAction(args []string) (interface{}, error)

func GetTwitterFollowersList

func GetTwitterFollowersList() (interface{}, error)

func GetTwitterFollowersListAction

func GetTwitterFollowersListAction(args []string) (interface{}, error)

func GetTwitterLastTweets

func GetTwitterLastTweets() (interface{}, error)

func GetTwitterLastTweetsAction

func GetTwitterLastTweetsAction(args []string) (interface{}, error)

func RegisterAction

func RegisterAction(name string, action Action)

Types

type Action

type Action func([]string) (interface{}, error)

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 TumblrEntry struct {
	Title          string
	Link           string
	Author         string
	PublishedDate  string
	ContentSnippet string
	Content        string
	Categories     []string
}

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)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL