constant

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 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 ChunkifyVideoPlaybackError

type ChunkifyVideoPlaybackError string // Always "chunkify.video.playback_error"

func (ChunkifyVideoPlaybackError) Default

func (ChunkifyVideoPlaybackError) MarshalJSON

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

type ChunkifyVideoPlaybackRateChanged

type ChunkifyVideoPlaybackRateChanged string // Always "chunkify.video.playback_rate_changed"

func (ChunkifyVideoPlaybackRateChanged) Default

func (ChunkifyVideoPlaybackRateChanged) MarshalJSON

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

type ChunkifyVideoPlaybackStateChanged

type ChunkifyVideoPlaybackStateChanged string // Always "chunkify.video.playback_state_changed"

func (ChunkifyVideoPlaybackStateChanged) Default

func (ChunkifyVideoPlaybackStateChanged) MarshalJSON

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

type ChunkifyVideoRenditionChanged

type ChunkifyVideoRenditionChanged string // Always "chunkify.video.rendition_changed"

func (ChunkifyVideoRenditionChanged) Default

func (ChunkifyVideoRenditionChanged) MarshalJSON

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

type ChunkifyVideoSeekCompleted

type ChunkifyVideoSeekCompleted string // Always "chunkify.video.seek_completed"

func (ChunkifyVideoSeekCompleted) Default

func (ChunkifyVideoSeekCompleted) MarshalJSON

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

type ChunkifyVideoSubtitleChanged

type ChunkifyVideoSubtitleChanged string // Always "chunkify.video.subtitle_changed"

func (ChunkifyVideoSubtitleChanged) Default

func (ChunkifyVideoSubtitleChanged) MarshalJSON

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

type ChunkifyVideoViewEnded

type ChunkifyVideoViewEnded string // Always "chunkify.video.view_ended"

func (ChunkifyVideoViewEnded) Default

func (ChunkifyVideoViewEnded) MarshalJSON

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

type ChunkifyVideoViewSnapshot

type ChunkifyVideoViewSnapshot string // Always "chunkify.video.view_snapshot"

func (ChunkifyVideoViewSnapshot) Default

func (ChunkifyVideoViewSnapshot) MarshalJSON

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

type ChunkifyVideoViewStarted

type ChunkifyVideoViewStarted string // Always "chunkify.video.view_started"

func (ChunkifyVideoViewStarted) Default

func (ChunkifyVideoViewStarted) MarshalJSON

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

type Constant

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

type Engagement

type Engagement string // Always "engagement"

func (Engagement) Default

func (c Engagement) Default() Engagement

func (Engagement) MarshalJSON

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

type Ok

type Ok string // Always "ok"

func (Ok) Default

func (c Ok) Default() Ok

func (Ok) MarshalJSON

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

type Quality

type Quality string // Always "quality"

func (Quality) Default

func (c Quality) Default() Quality

func (Quality) MarshalJSON

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

type Summary

type Summary string // Always "summary"

func (Summary) Default

func (c Summary) Default() Summary

func (Summary) MarshalJSON

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

type TextCsv

type TextCsv string // Always "text/csv"

func (TextCsv) Default

func (c TextCsv) Default() TextCsv

func (TextCsv) MarshalJSON

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

type Utc

type Utc string // Always "UTC"

func (Utc) Default

func (c Utc) Default() Utc

func (Utc) MarshalJSON

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

Jump to

Keyboard shortcuts

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