server

package
v0.0.0-...-7736882 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeiShu

type FeiShu struct {
	WebHookUrl string
}

func NewFeiShu

func NewFeiShu(webHookUrl string) *FeiShu

func (*FeiShu) Send

func (f *FeiShu) Send(content string) error

func (*FeiShu) SendText

func (f *FeiShu) SendText(content string) error

type FeiShuSendText

type FeiShuSendText struct {
	MsgType string `json:"msg_type"`
	Content struct {
		Text string `json:"text"`
	} `json:"content"`
}

type NetEasePlayList

type NetEasePlayList struct {
	Tracks                []NetEaseTracks `json:"tracks"`
	TrackNumberUpdateTime int64           `json:"trackNumberUpdateTime"`
	SubscribedCount       int             `json:"subscribedCount"`
	TrackCount            int             `json:"trackCount"`
	CommentThreadID       string          `json:"commentThreadId"`
	TrackUpdateTime       int64           `json:"trackUpdateTime"`
	PlayCount             int64           `json:"playCount"`
	Description           string          `json:"description"`
	Name                  string          `json:"name"`
	ID                    int             `json:"id"`
	ShareCount            int             `json:"shareCount"`
	UpdateTime            int64           `json:"updateTime"`
	CoverImgIDStr         string          `json:"coverImgId_str"`
	CommentCount          int             `json:"commentCount"`
}

type NetEasePlayListDetail

type NetEasePlayListDetail struct {
	Code     int             `json:"code"`
	Playlist NetEasePlayList `json:"playlist"`
}

type NetEaseRank

type NetEaseRank struct {
	Pre string
}

func (*NetEaseRank) GetTop10

func (n *NetEaseRank) GetTop10() (string, error)

云音乐飙升榜前 10

type NetEaseTracks

type NetEaseTracks struct {
	Name string `json:"name"`
	ID   int    `json:"id"`
	Ar   []struct {
		ID    int           `json:"id"`
		Name  string        `json:"name"`
		Tns   []interface{} `json:"tns"`
		Alias []interface{} `json:"alias"`
	} `json:"ar"`
	Al struct {
		ID     int           `json:"id"`
		Name   string        `json:"name"`
		PicURL string        `json:"picUrl"`
		Tns    []interface{} `json:"tns"`
		PicStr string        `json:"pic_str"`
		Pic    int64         `json:"pic"`
	} `json:"al"`
	Dt          int   `json:"dt"`
	PublishTime int64 `json:"publishTime"`
}

type Push

type Push struct {
}

func (*Push) PushNetEaseTop10

func (p *Push) PushNetEaseTop10()

type Scheduler

type Scheduler struct {
	C *cron.Cron
}

func NewScheduler

func NewScheduler() *Scheduler

NewScheduler 创建调度器

func (*Scheduler) InitJob

func (s *Scheduler) InitJob()

func (*Scheduler) Run

func (s *Scheduler) Run()

func (*Scheduler) Stop

func (s *Scheduler) Stop() context.Context

Jump to

Keyboard shortcuts

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