mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
25 lines
449 B
Go
25 lines
449 B
Go
package model
|
|
|
|
type Type string
|
|
|
|
const (
|
|
TypeChannel = Type("channel")
|
|
TypePlaylist = Type("playlist")
|
|
TypeUser = Type("user")
|
|
TypeGroup = Type("group")
|
|
)
|
|
|
|
type Provider string
|
|
|
|
const (
|
|
ProviderYoutube = Provider("youtube")
|
|
ProviderVimeo = Provider("vimeo")
|
|
)
|
|
|
|
// Info represents data extracted from URL
|
|
type Info struct {
|
|
LinkType Type // Either group, channel or user
|
|
Provider Provider // Youtube or Vimeo
|
|
ItemID string
|
|
}
|