Versions in this module Expand all Collapse all v0 v0.4.0 Apr 17, 2024 Changes in this version type Client + func (c *Client) Video(ctx context.Context, id, pwd string) (Video, error) v0.3.0 Apr 5, 2024 v0.2.0 Apr 5, 2024 v0.1.0 Apr 5, 2024 Changes in this version + type Account struct + Avatars []Avatar + Banners []Banner + Created time.Time + FollowersCount int + FollowingCount int + Host string + HostRedundancyAllowed bool + ID int + Name string + URL string + Updated time.Time + UserID int + type Avatar struct + Created time.Time + Path string + Updated time.Time + Width int + type Banner struct + Created time.Time + Path string + Updated time.Time + Width int + type Category struct + ID int + Name string + type Channel struct + Avatars []Avatar + Banners []Banner + Created time.Time + Description string + DisplayName string + FollowersCount int + FollowingCount int + Host string + HostRedundancyAllowed bool + ID int + IsLocal bool + Name string + Owner Account + Support string + URL string + Updated time.Time + type Client struct + func NewClient(srv string, opts ...Option) (*Client, error) + func (c *Client) Account(ctx context.Context, name string) (Account, error) + func (c *Client) Accounts(ctx context.Context) ([]Account, error) + func (c *Client) Auth(ctx context.Context, usr, pwd string) error + func (c *Client) Categories(ctx context.Context) ([]Category, error) + func (c *Client) Channels(ctx context.Context, usr string) ([]Channel, error) + func (c *Client) DelVideo(ctx context.Context, id string) error + func (c *Client) Languages(ctx context.Context) ([]Language, error) + func (c *Client) Licenses(ctx context.Context) ([]License, error) + func (c *Client) Upload(ctx context.Context, vid VideoUpload) (Video, error) + func (c *Client) UploadLegacy(ctx context.Context, vid VideoUpload) (Video, error) + func (c *Client) UploadResumable(ctx context.Context, vid VideoUpload) (Video, error) + func (c *Client) Videos(ctx context.Context, usr string) ([]Video, error) + type Error struct + Detail string + Docs string + Status int + Title string + Type string + func (e Error) Error() string + type File interface + Name func() string + type Language struct + ID string + Name string + type License struct + ID int + Name string + type Option func(c *Client) error + func WithUser(usr string) Option + type Privacy struct + ID int + Name string + type PrivacyKind int + const PrivInternal + const PrivPasswordProtected + const PrivPrivate + const PrivPublic + const PrivUnlisted + type Video struct + Account Account + AspectRatio float64 + Category Category + Channel Channel + Created time.Time + Description string + Dislikes int + Duration int + EmbedPath string + ID int + IsLive bool + IsLocal bool + Language Language + License License + Likes int + NSFW bool + Name string + OriginallyPublishedAt time.Time + PreviewPath string + Privacy Privacy + Published time.Time + ShortUUID string + ThumbnailPath string + UUID string + Updated time.Time + Views int + WaitTranscoding bool + type VideoUpload struct + Category int + ChannelID int + CommentsEnabled bool + Description string + DownloadEnabled bool + File File + Language string + License int + NSFW bool + Name string + OriginallyPublishedAt time.Time + PreviewFile File + Privacy PrivacyKind + ScheduleUpdate struct{ ... } + Support string + Tags []string + ThumbnailFile File + VideoPasswords []string + WaitTranscoding bool + func NewVideoUpload(chanID int, name, fname string) (VideoUpload, error)