shared

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChunkifyError

type ChunkifyError struct {
	// Additional error details or output
	Detail string `json:"detail" api:"required"`
	// Main error message
	Message string `json:"message" api:"required"`
	// Type of error
	//
	// Any of "setup", "ffmpeg", "source", "upload", "download", "ingest", "job",
	// "unexpected", "permission", "timeout", "cancelled".
	Type ChunkifyErrorType `json:"type" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Detail      respjson.Field
		Message     respjson.Field
		Type        respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ChunkifyError) RawJSON

func (r ChunkifyError) RawJSON() string

Returns the unmodified JSON received from the API

func (*ChunkifyError) UnmarshalJSON

func (r *ChunkifyError) UnmarshalJSON(data []byte) error

type ChunkifyErrorType

type ChunkifyErrorType string

Type of error

const (
	ChunkifyErrorTypeSetup      ChunkifyErrorType = "setup"
	ChunkifyErrorTypeFfmpeg     ChunkifyErrorType = "ffmpeg"
	ChunkifyErrorTypeSource     ChunkifyErrorType = "source"
	ChunkifyErrorTypeUpload     ChunkifyErrorType = "upload"
	ChunkifyErrorTypeDownload   ChunkifyErrorType = "download"
	ChunkifyErrorTypeIngest     ChunkifyErrorType = "ingest"
	ChunkifyErrorTypeJob        ChunkifyErrorType = "job"
	ChunkifyErrorTypeUnexpected ChunkifyErrorType = "unexpected"
	ChunkifyErrorTypePermission ChunkifyErrorType = "permission"
	ChunkifyErrorTypeTimeout    ChunkifyErrorType = "timeout"
	ChunkifyErrorTypeCancelled  ChunkifyErrorType = "cancelled"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL