Documentation
¶
Index ¶
- Variables
- func AwaitEnter() error
- func BytesToString(b []byte) string
- func GetChannel(id string) (*youtube.Channel, error)
- func GetVideo(id string) (youtube.VideoResult, error)
- func Require[S ~[]E, E any](s S, capacity int) S
- func Resize[S ~[]E, E any](s S, length int) S
- func Sha256(s string) string
- func StringToBytes(s string) []byte
- type Channel
- type ExportOptions
- type Migrator
- type PlaylistTitle
- type Playlists
- type Subscriptions
- type UserData
- type VideoID
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger zerolog.Logger
Functions ¶
func AwaitEnter ¶
func AwaitEnter() error
func BytesToString ¶
func StringToBytes ¶
Types ¶
type ExportOptions ¶
type Migrator ¶
type Migrator interface {
ImportTo(data UserData) error
ExportFrom(opts ExportOptions) (data UserData, err error)
}
type PlaylistTitle ¶
type PlaylistTitle = string
type Playlists ¶
type Playlists map[PlaylistTitle][]VideoID
type Subscriptions ¶
type Subscriptions []Channel
type UserData ¶
type UserData struct {
Subscriptions Subscriptions `json:"subscriptions"`
Playlists Playlists `json:"playlists"`
}
Click to show internal directories.
Click to hide internal directories.