Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteEvent(token oauth2.Token, eventID string) error
- func DeleteEvents(token oauth2.Token, start, end string) error
- func FetchYouTubeAudio(videoID, dst string) error
- func FetchYouTubeVideo(videoID, dst string) error
- func HMACSha1(key, method, md5, _type, date string, ossHeader []string, resource string) string
- func InsertEvent(event Event, token oauth2.Token) (err error)
- func LanZouRealURL(download string) (string, error)
- func QualityOrder(i, j Format) bool
- func SpeechToText(src string) (result string, err error)
- func TextToSpeed(text string, filename string) (err error)
- func WithAudioOnly(format Format) bool
- func WithVideoOnly(format Format) bool
- type Context
- type Cron
- type Event
- type EventDateTime
- type EventOption
- type FileInfo
- type Filter
- type Format
- type Recurrence
- type Request
- type YouTube
- func (tube *YouTube) All() (format []Format, err error)
- func (tube *YouTube) Filter(options ...Filter) *YouTube
- func (tube *YouTube) First() (format Format, err error)
- func (tube *YouTube) IndexOf(i int) (format Format, err error)
- func (tube *YouTube) Last() (format Format, err error)
- func (tube *YouTube) OrderBy(order func(i, j Format) bool) *YouTube
Constants ¶
View Source
const (
ZoneShanghai = "Asia/Shanghai"
)
Variables ¶
View Source
var COOKIE = ""
https://developer.baidu.com/vcast 登录百度账号, 获取 Cookie 信息
Functions ¶
func FetchYouTubeAudio ¶
func FetchYouTubeVideo ¶
func LanZouRealURL ¶
func QualityOrder ¶
func SpeechToText ¶
func TextToSpeed ¶
func WithAudioOnly ¶
func WithVideoOnly ¶
Types ¶
type Event ¶
type Event struct { TimeAt *time.Time TimeZone string Title string Recurrence Recurrence Body json.RawMessage Request Request }
type EventDateTime ¶
type EventOption ¶
type EventOption interface {
// contains filtered or unexported methods
}
type FileInfo ¶
type FileInfo struct { Icon string `json:"icon"` ID string `json:"id"` Name string `json:"name_all"` Download string `json:"download"` }
func FetchLanZouInfo ¶
type Format ¶
type Recurrence ¶
type Recurrence []string
func WithCron ¶
func WithCron(c Cron, interval ...int) Recurrence
func WithEmpty ¶
func WithEmpty() Recurrence
func WithForever ¶
func WithForever(c Cron, interval ...int) Recurrence
Click to show internal directories.
Click to hide internal directories.