shared

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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,required"`
	// Main error message
	Message string `json:"message,required"`
	// Type of error
	//
	// Any of "setup", "ffmpeg", "source", "upload", "download", "ingest", "job",
	// "unexpected", "permission", "timeout", "cancelled".
	Type ChunkifyErrorType `json:"type,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