Documentation
¶
Index ¶
- Constants
- Variables
- func DingLog(content, title string) error
- func FetchMaoyanApi() error
- func FetchMusic163Api() error
- func LsArchivesMdFiles(dir string) (map[string][]string, error)
- func ParseEmailContent(logs []string) (error, string)
- func ParseMaoyanMarkdown() error
- func ParseMarkdownHacknews() error
- func ParseReadmeMarkdown() error
- func RunCmds(cmds []Cmd) (logs []string, err error)
- func SendMsgToEmail(subject, msg string) error
- func SpiderHackNews() error
- func SpiderHackShows() error
- func SpiderRedditProgramming() error
- func Translate()
- func TranslateCh2En(text string) string
- func TranslateEn2Ch(text string) string
- type AutoGeneratedMovie
- type Cmd
- type Movie
- type NewsItem
Constants ¶
View Source
const ( WX_APP_ID = "wx7b08badc6e04e495" WX_APP_SECRET = "cb7221fd9dad241e15d9bb9928f034a8" )
View Source
const DingApiUrl = "https://oapi.dingtalk.com/robot/send?access_token=e28e8b2efdd05a9954f888ab16b2e059706628f85590e269cae996eae7fbbf8f"
Variables ¶
View Source
var RedisClient *redis.Client
Functions ¶
func FetchMaoyanApi ¶
func FetchMaoyanApi() error
func FetchMusic163Api ¶
func FetchMusic163Api() error
func ParseEmailContent ¶
func ParseMaoyanMarkdown ¶
func ParseMaoyanMarkdown() error
func ParseMarkdownHacknews ¶
func ParseMarkdownHacknews() error
func ParseReadmeMarkdown ¶
func ParseReadmeMarkdown() error
func SendMsgToEmail ¶
func SpiderHackNews ¶
func SpiderHackNews() error
func SpiderHackShows ¶
func SpiderHackShows() error
func SpiderRedditProgramming ¶
func SpiderRedditProgramming() error
func TranslateCh2En ¶
func TranslateEn2Ch ¶
Types ¶
type AutoGeneratedMovie ¶
type Movie ¶
type Movie struct { ID int `json:"id"` HaspromotionTag bool `json:"haspromotionTag"` Img string `json:"img"` Version string `json:"version"` Nm string `json:"nm"` PreShow bool `json:"preShow"` Sc float64 `json:"sc"` GlobalReleased bool `json:"globalReleased"` Wish int `json:"wish"` Star string `json:"star"` Rt string `json:"rt"` ShowInfo string `json:"showInfo"` Showst int `json:"showst"` Wishst int `json:"wishst"` NmEn string `json:"nmEn"` }
func FetchMaoyanRedisData ¶
Click to show internal directories.
Click to hide internal directories.