Versions in this module Expand all Collapse all v0 v0.1.0 Jul 9, 2026 Changes in this version + const DefaultChunkSize + type APIError struct + Body string + Code string + Detail string + Status int + func (e *APIError) Error() string + type ActorImage struct + FileURL string + Height int + Path string + Width int + type Channel struct + DisplayName string + ID int + Name string + type Client struct + func NewClient(baseURL string, opts ...Option) (*Client, error) + func (c *Client) CreateChannel(ctx context.Context, p CreateChannelParams) (Channel, error) + func (c *Client) Login(ctx context.Context, username, password string, opts ...LoginOptions) (Token, error) + func (c *Client) MyChannels(ctx context.Context) ([]Channel, error) + func (c *Client) OAuthClient(ctx context.Context) (OAuthClient, error) + func (c *Client) Refresh(ctx context.Context, client OAuthClient, refreshToken string) (Token, error) + func (c *Client) SetChannelAvatar(ctx context.Context, handle, filename string, image io.Reader) ([]ActorImage, error) + func (c *Client) SetChannelBanner(ctx context.Context, handle, filename string, image io.Reader) ([]ActorImage, error) + func (c *Client) SetToken(token string) + func (c *Client) Token() string + func (c *Client) Upload(ctx context.Context, params UploadParams, filename string, video io.Reader) (*UploadedVideo, error) + func (c *Client) UploadResumable(ctx context.Context, params UploadParams, filename string, video io.Reader, ...) (*UploadedVideo, error) + type CommentsPolicy int + const CommentsDisabled + const CommentsEnabled + const CommentsRequireApproval + type CreateChannelParams struct + Description string + DisplayName string + Name string + Support string + type Doer interface + Do func(req *http.Request) (*http.Response, error) + type LoginOptions struct + Client *OAuthClient + OTP string + type OAuthClient struct + ClientID string + ClientSecret string + type Option func(*Client) + func WithHTTPClient(d Doer) Option + func WithToken(token string) Option + type Privacy int + const PrivacyInternal + const PrivacyPasswordProtected + const PrivacyPrivate + const PrivacyPublic + const PrivacyUnlisted + type ResumableOptions struct + ChunkSize int64 + ContentType string + type Token struct + AccessToken string + ExpiresIn int + RefreshToken string + RefreshTokenExpiresIn int + TokenType string + type UploadParams struct + Category int + ChannelID int + CommentsPolicy CommentsPolicy + Description string + DownloadEnabled *bool + GenerateTranscription *bool + Language string + Licence int + NSFW *bool + Name string + OriginallyPublishedAt string + Privacy Privacy + Support string + Tags []string + WaitTranscoding *bool + type UploadedVideo struct + ID int + ShortUUID string + UUID string