Documentation
¶
Index ¶
- Constants
- func GeekSearchAction(ctx *cli.Context, al *alfred.Alfred)
- func IPAction(ctx *cli.Context, al *alfred.Alfred)
- func PingAction(ctx *cli.Context, al *alfred.Alfred)
- func TimeAction(ctx *cli.Context, al *alfred.Alfred)
- func WhoAMI() string
- type Result
- type SearchResult
- type SearchResultArticle
- type SearchResultCollection
- type SearchResultColumn
- type SearchResultData
- type SearchResultItem
Constants ¶
View Source
const ( CateAll string = "" CateArticle string = "article" CateColumn string = "column" CateDaily string = "daily" )
View Source
const ( ItemArticle string = "article" ItemColumn string = "product" ItemColl string = "collection" )
View Source
const ( ArticleURL = "https://time.geekbang.org/column/article/" ArticleColumnURL = "https://time.geekbang.org/column/intro/" VideoURL = "https://time.geekbang.org/course/detail/" VideoColumnURL = "https://time.geekbang.org/course/intro/" DailyVideoURL = "https://time.geekbang.org/dailylesson/detail/" DailyCollURL = "https://time.geekbang.org/dailylesson/collection/" )
View Source
const (
SearchURL = "https://time.geekbang.org/serv/v3/search"
)
View Source
const (
SelfName string = "[Alfred-Dev-Toolkit]"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SearchResult ¶
type SearchResult struct {
Code int `json:"code"`
Data SearchResultData `json:"data"`
Error interface{} `json:"error"`
}
type SearchResultArticle ¶
type SearchResultCollection ¶
type SearchResultColumn ¶
type SearchResultData ¶
type SearchResultData struct {
List []SearchResultItem `json:"list"`
}
type SearchResultItem ¶
type SearchResultItem struct {
ItemType string `json:"item_type"`
Article SearchResultArticle `json:"article"`
Column SearchResultColumn `json:"product"`
Collection SearchResultCollection `json:"collection"`
}
Click to show internal directories.
Click to hide internal directories.