Versions in this module Expand all Collapse all v0 v0.5.0 Apr 22, 2025 v0.4.11 Apr 22, 2025 v0.4.10 Apr 22, 2025 v0.4.9 Apr 22, 2025 v0.4.8 Apr 22, 2025 v0.4.7 Apr 22, 2025 v0.4.6 Apr 22, 2025 v0.4.5 Apr 22, 2025 v0.4.4 Apr 22, 2025 v0.4.3 Apr 22, 2025 v0.4.2 Apr 22, 2025 v0.4.1 Apr 22, 2025 v0.4.0 Apr 22, 2025 v0.3.0 Apr 22, 2025 v0.2.0 Apr 22, 2025 v0.1.0 Apr 22, 2025 Changes in this version + const CpuCountUnknown + const JobStatusDownloading + const JobStatusError + const JobStatusFinished + const JobStatusMerging + const JobStatusProcessing + const JobStatusQueued + const JobStatusTranscoding + const JobStatusUploading + const NotificationEventJobCompleted + const StorageProviderAws + const StorageProviderChunkify + const StorageProviderCloudflare + const TokenScopeProject + const TokenScopeTeam + const TranscoderType16vCPU + const TranscoderType4vCPU + const TranscoderType8vCPU + var Version = "dev" + func VerifyNotificationSignature(payload []byte, signature string, secret string) bool + type AccessTokens struct + ProjectToken string + TeamToken string + type Client struct + LastAvailableCpuCount int64 + func NewClient(teamKey, projectKey string) Client + func NewClientWithConfig(config Config) Client + func (c *Client) FileList(params FileListParams) (*PaginatedResult[File], error) + func (c *Client) Job(id string) (Job, error) + func (c *Client) JobCreate(params JobCreateParams) (Job, error) + func (c *Client) JobList(params JobListParams) (*PaginatedResult[Job], error) + func (c *Client) JobListFiles(id string) ([]File, error) + func (c *Client) JobListLogs(params JobListLogsParams) ([]Log, error) + func (c *Client) Notification(id string) (Notification, error) + func (c *Client) NotificationCreate(params NotificationCreateParams) (Notification, error) + func (c *Client) NotificationList(params NotificationListParams) (*PaginatedResult[Notification], error) + func (c *Client) Project(id string) (Project, error) + func (c *Client) ProjectCreate(project ProjectCreateParams) (Project, error) + func (c *Client) ProjectDelete(id string) error + func (c *Client) ProjectList() ([]Project, error) + func (c *Client) ProjectUpdate(params ProjectUpdateParams) error + func (c *Client) Source(id string) (Source, error) + func (c *Client) SourceCreate(params SourceCreateParams) (Source, error) + func (c *Client) SourceList(params SourceListParams) (*PaginatedResult[Source], error) + func (c *Client) Storage(id string) (Storage, error) + func (c *Client) StorageCreate(storage StorageCreateParams) (Storage, error) + func (c *Client) StorageDelete(id string) error + func (c *Client) StorageList() ([]Storage, error) + func (c *Client) TokenCreate(params TokenCreateParams) (Token, error) + func (c *Client) TokenList() ([]Token, error) + func (c *Client) TokenRevoke(id string) error + func (c *Client) Webhook(id string) (Webhook, error) + func (c *Client) WebhookCreate(params WebhookCreateParams) (WebhookWithSecretKey, error) + func (c *Client) WebhookDelete(id string) error + func (c *Client) WebhookList() ([]Webhook, error) + func (c *Client) WebhookUpdate(params WebhookUpdateParams) error + type Config struct + AccessTokens AccessTokens + BaseURL string + HTTPClient HTTPClient + Timeout time.Duration + type ErrorInfo struct + Code int + Message string + Type string + type FfmpegAv1 struct + Crf int64 + Level int64 + Movflags string + Preset string + Profilev string + type FfmpegCommon struct + Duration int64 + Seek int64 + type FfmpegHls struct + HlsEnc bool + HlsEncIv string + HlsEncKey string + HlsEncKeyUrl string + HlsSegmentType string + HlsTime int64 + type FfmpegHlsAv1 struct + type FfmpegHlsX264 struct + type FfmpegHlsX265 struct + type FfmpegImage struct + Frames int64 + Height int64 + Interval int64 + Sprite bool + Width int64 + type FfmpegJpg struct + type FfmpegVideo struct + AudioBitrate int64 + Bufsize int64 + Channels int64 + DisableAudio bool + DisableVideo bool + Framerate float64 + Gop int64 + Height int64 + Maxrate int64 + PixFmt string + VideoBitrate int64 + Width int64 + type FfmpegVp9 struct + CpuUsed string + Crf int64 + Quality string + type FfmpegX264 struct + Crf int64 + Level int64 + Movflags string + Preset string + Profilev string + X264KeyInt int64 + type FfmpegX265 struct + Crf int64 + Level int64 + Movflags string + Preset string + Profilev string + X265KeyInt int64 + type File struct + CreatedAt time.Time + Id string + JobId string + MimeType string + Path string + Size int64 + StorageId string + Url string + type FileListParams struct + CreatedGte string + CreatedLte string + CreatedSort string + Limit int64 + Offset int64 + type Format struct + Config map[string]any + Name string + type FormatConfig interface + type FormatName string + const FormatHlsAv1 + const FormatHlsX264 + const FormatHlsX265 + const FormatJpg + const FormatMp4Av1 + const FormatMp4X264 + const FormatMp4X265 + const FormatWebmVp9 + type HTTPClient interface + Do func(*http.Request) (*http.Response, error) + type Job struct + BillableTime int64 + CreatedAt time.Time + Format Format + HlsManifestId *string + Id string + Metadata any + Progress float64 + SourceId string + StartedAt time.Time + Status string + Storage JobStorage + Transcoder Transcoder + UpdatedAt time.Time + type JobCreateFormatParams struct + Config FormatConfig + Name FormatName + type JobCreateParams struct + Format JobCreateFormatParams + HlsManifestId string + Metadata JobCreateParamsMetadata + SourceId string + Storage JobCreateStorageParams + Transcoder JobCreateTranscoderParams + type JobCreateParamsMetadata map[string]any + type JobCreateStorageParams struct + Id string + Path string + type JobCreateTranscoderParams struct + Quantity int64 + Type string + type JobListLogsParams struct + JobId string + Service string + TranscoderId int64 + type JobListParams struct + CreatedGte string + CreatedLte string + CreatedSort string + FormatName string + Id string + Limit int64 + Metadata [][]string + Offset int64 + SourceId string + Status string + type JobStorage struct + Id string + Path string + Region string + type Log struct + Attributes LogAttrs + JobId string + Level string + Msg string + Service string + Time time.Time + type LogAttrs map[string]any + type Logs []Log + type Notification struct + CreatedAt time.Time + Event string + Id string + JobId string + Payload string + ResponseStatusCode int + Webhook Webhook + type NotificationCreateParams struct + Event string + JobId string + WebhookId string + type NotificationListParams struct + CreatedGte string + CreatedLte string + CreatedSort string + Events []string + JobId string + Limit int64 + Offset int64 + ResponseStatusCodeEq int + ResponseStatusCodeGte int + ResponseStatusCodeLte int + WebhookId string + type NotificationPayload struct + Data any + Date time.Time + Event string + Id string + func (p *NotificationPayload) UnmarshalJSON(data []byte) error + type NotificationPayloadJobCompletedData struct + Error *string + Files []File + JobId string + Metadata any + SourceId string + type PaginatedResult struct + Items []T + Limit int64 + Offset int64 + Total int64 + func (p *PaginatedResult[T]) HasNext() bool + func (p *PaginatedResult[T]) HasPrevious() bool + func (p *PaginatedResult[T]) Next() (*PaginatedResult[T], error) + func (p *PaginatedResult[T]) Previous() (*PaginatedResult[T], error) + type Project struct + CreatedAt time.Time + Id string + Name string + Slug string + StorageId string + type ProjectCreateParams struct + Name string + type ProjectUpdateParams struct + Id string + Name string + StorageId string + type RequestSettings struct + Body any + Method string + QueryString string + URL string + type ResponseError struct + Error ErrorInfo + Status string + type ResponseNoContent struct + type ResponseOk struct + Data any + Status string + type ResponseWithPagination struct + Data any + Limit int64 + Offset int64 + Status string + Total int64 + type Source struct + AudioBitrate int64 + AudioCodec string + CreatedAt time.Time + Device string + Duration int64 + Height int64 + Id string + Images []string + Metadata any + Size int64 + Url string + VideoBitrate int64 + VideoCodec string + VideoFramerate float64 + Width int64 + type SourceCreateParams struct + Metadata SourceCreateParamsMetadata + Url string + type SourceCreateParamsMetadata map[string]any + type SourceListParams struct + AudioCodec string + CreatedGte string + CreatedLte string + CreatedSort string + Device string + DurationEq float64 + DurationGt float64 + DurationGte float64 + DurationLt float64 + DurationLte float64 + HeightEq int64 + HeightGt int64 + HeightGte int64 + HeightLt int64 + HeightLte int64 + Id string + Limit int64 + Metadata [][]string + Offset int64 + SizeEq int64 + SizeGt int64 + SizeGte int64 + SizeLt int64 + SizeLte int64 + VideoCodec string + WidthEq int64 + WidthGt int64 + WidthGte int64 + WidthLt int64 + WidthLte int64 + type Storage struct + Bucket string + CreatedAt time.Time + Endpoint string + Id string + Location string + Provider string + Public bool + Region string + type StorageCreateParams struct + AccessKeyId string + Bucket string + Endpoint string + Location string + Provider string + Public bool + Region string + SecretAccessKey string + type Token struct + CreatedAt time.Time + Id string + Name string + ProjectId string + Scope string + Token string + type TokenCreateParams struct + Name string + ProjectId string + Scope string + type Transcoder struct + Quantity int64 + Speed float64 + Status []string + Type string + type Webhook struct + Enabled bool + Events []string + Id string + ProjectId string + Url string + type WebhookCreateParams struct + Enabled bool + Events string + Url string + type WebhookUpdateParams struct + Enabled *bool + WebhookId string + type WebhookWithSecretKey struct + SecretKey string