constant

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 1 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

func ValueOf

func ValueOf[T Constant[T]]() T

ValueOf gives the default value of a constant from its type. It's helpful when constructing constants as variants in a one-of. Note that empty structs are marshalled by default. Usage: constant.ValueOf[constant.Foo]()

Types

type Auto

type Auto string // Always "auto"

func (Auto) Default

func (c Auto) Default() Auto

func (Auto) MarshalJSON

func (c Auto) MarshalJSON() ([]byte, error)

type Aws

type Aws string // Always "aws"

func (Aws) Default

func (c Aws) Default() Aws

func (Aws) MarshalJSON

func (c Aws) MarshalJSON() ([]byte, error)

type Caption added in v0.17.0

type Caption string // Always "caption"

func (Caption) Default added in v0.17.0

func (c Caption) Default() Caption

func (Caption) MarshalJSON added in v0.17.0

func (c Caption) MarshalJSON() ([]byte, error)

type Chunkify

type Chunkify string // Always "chunkify"

func (Chunkify) Default

func (c Chunkify) Default() Chunkify

func (Chunkify) MarshalJSON

func (c Chunkify) MarshalJSON() ([]byte, error)

type Cloudflare

type Cloudflare string // Always "cloudflare"

func (Cloudflare) Default

func (c Cloudflare) Default() Cloudflare

func (Cloudflare) MarshalJSON

func (c Cloudflare) MarshalJSON() ([]byte, error)

type Constant

type Constant[T any] interface {
	Default() T
}

type CreateCaption added in v0.17.0

type CreateCaption string // Always "create_caption"

func (CreateCaption) Default added in v0.17.0

func (c CreateCaption) Default() CreateCaption

func (CreateCaption) MarshalJSON added in v0.17.0

func (c CreateCaption) MarshalJSON() ([]byte, error)

type CreateStaticRendition added in v0.17.0

type CreateStaticRendition string // Always "create_static_rendition"

func (CreateStaticRendition) Default added in v0.17.0

func (CreateStaticRendition) MarshalJSON added in v0.17.0

func (c CreateStaticRendition) MarshalJSON() ([]byte, error)

type CreateThumbnails added in v0.17.0

type CreateThumbnails string // Always "create_thumbnails"

func (CreateThumbnails) Default added in v0.17.0

func (c CreateThumbnails) Default() CreateThumbnails

func (CreateThumbnails) MarshalJSON added in v0.17.0

func (c CreateThumbnails) MarshalJSON() ([]byte, error)

type CreateTranscript added in v0.17.0

type CreateTranscript string // Always "create_transcript"

func (CreateTranscript) Default added in v0.17.0

func (c CreateTranscript) Default() CreateTranscript

func (CreateTranscript) MarshalJSON added in v0.17.0

func (c CreateTranscript) MarshalJSON() ([]byte, error)

type H264 added in v0.17.0

type H264 string // Always "h264"

func (H264) Default added in v0.17.0

func (c H264) Default() H264

func (H264) MarshalJSON added in v0.17.0

func (c H264) MarshalJSON() ([]byte, error)

type HlsAv1

type HlsAv1 string // Always "hls_av1"

func (HlsAv1) Default

func (c HlsAv1) Default() HlsAv1

func (HlsAv1) MarshalJSON

func (c HlsAv1) MarshalJSON() ([]byte, error)

type HlsH264

type HlsH264 string // Always "hls_h264"

func (HlsH264) Default

func (c HlsH264) Default() HlsH264

func (HlsH264) MarshalJSON

func (c HlsH264) MarshalJSON() ([]byte, error)

type HlsH265

type HlsH265 string // Always "hls_h265"

func (HlsH265) Default

func (c HlsH265) Default() HlsH265

func (HlsH265) MarshalJSON

func (c HlsH265) MarshalJSON() ([]byte, error)

type Jpg

type Jpg string // Always "jpg"

func (Jpg) Default

func (c Jpg) Default() Jpg

func (Jpg) MarshalJSON

func (c Jpg) MarshalJSON() ([]byte, error)

type M4aAac added in v0.17.0

type M4aAac string // Always "m4a_aac"

func (M4aAac) Default added in v0.17.0

func (c M4aAac) Default() M4aAac

func (M4aAac) MarshalJSON added in v0.17.0

func (c M4aAac) MarshalJSON() ([]byte, error)

type MP4 added in v0.17.0

type MP4 string // Always "mp4"

func (MP4) Default added in v0.17.0

func (c MP4) Default() MP4

func (MP4) MarshalJSON added in v0.17.0

func (c MP4) MarshalJSON() ([]byte, error)

type MP4Av1

type MP4Av1 string // Always "mp4_av1"

func (MP4Av1) Default

func (c MP4Av1) Default() MP4Av1

func (MP4Av1) MarshalJSON

func (c MP4Av1) MarshalJSON() ([]byte, error)

type MP4H264

type MP4H264 string // Always "mp4_h264"

func (MP4H264) Default

func (c MP4H264) Default() MP4H264

func (MP4H264) MarshalJSON

func (c MP4H264) MarshalJSON() ([]byte, error)

type MP4H265

type MP4H265 string // Always "mp4_h265"

func (MP4H265) Default

func (c MP4H265) Default() MP4H265

func (MP4H265) MarshalJSON

func (c MP4H265) MarshalJSON() ([]byte, error)

type S3Compatible added in v0.16.3

type S3Compatible string // Always "s3_compatible"

func (S3Compatible) Default added in v0.16.3

func (c S3Compatible) Default() S3Compatible

func (S3Compatible) MarshalJSON added in v0.16.3

func (c S3Compatible) MarshalJSON() ([]byte, error)

type Sprite added in v0.17.0

type Sprite string // Always "sprite"

func (Sprite) Default added in v0.17.0

func (c Sprite) Default() Sprite

func (Sprite) MarshalJSON added in v0.17.0

func (c Sprite) MarshalJSON() ([]byte, error)

type StaticRendition added in v0.17.0

type StaticRendition string // Always "static_rendition"

func (StaticRendition) Default added in v0.17.0

func (c StaticRendition) Default() StaticRendition

func (StaticRendition) MarshalJSON added in v0.17.0

func (c StaticRendition) MarshalJSON() ([]byte, error)

type Success

type Success string // Always "success"

func (Success) Default

func (c Success) Default() Success

func (Success) MarshalJSON

func (c Success) MarshalJSON() ([]byte, error)

type Thumbnail added in v0.17.0

type Thumbnail string // Always "thumbnail"

func (Thumbnail) Default added in v0.17.0

func (c Thumbnail) Default() Thumbnail

func (Thumbnail) MarshalJSON added in v0.17.0

func (c Thumbnail) MarshalJSON() ([]byte, error)

type Transcript added in v0.17.0

type Transcript string // Always "transcript"

func (Transcript) Default added in v0.17.0

func (c Transcript) Default() Transcript

func (Transcript) MarshalJSON added in v0.17.0

func (c Transcript) MarshalJSON() ([]byte, error)

type TranslateCaption added in v0.17.0

type TranslateCaption string // Always "translate_caption"

func (TranslateCaption) Default added in v0.17.0

func (c TranslateCaption) Default() TranslateCaption

func (TranslateCaption) MarshalJSON added in v0.17.0

func (c TranslateCaption) MarshalJSON() ([]byte, error)

type WebmVp9

type WebmVp9 string // Always "webm_vp9"

func (WebmVp9) Default

func (c WebmVp9) Default() WebmVp9

func (WebmVp9) MarshalJSON

func (c WebmVp9) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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