constant

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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 APICall added in v0.64.0

type APICall string // Always "api_call"

func (APICall) Default added in v0.64.0

func (c APICall) Default() APICall

func (APICall) MarshalJSON added in v0.64.0

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

type AppVersionSummary

type AppVersionSummary string // Always "app_version_summary"

func (AppVersionSummary) Default

func (AppVersionSummary) MarshalJSON

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

type AwsUsEast1a

type AwsUsEast1a string // Always "aws.us-east-1a"

func (AwsUsEast1a) Default

func (c AwsUsEast1a) Default() AwsUsEast1a

func (AwsUsEast1a) MarshalJSON

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

type Captcha added in v0.64.0

type Captcha string // Always "captcha"

func (Captcha) Default added in v0.64.0

func (c Captcha) Default() Captcha

func (Captcha) MarshalJSON added in v0.64.0

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

type CaptchaSolveResult added in v0.64.0

type CaptchaSolveResult string // Always "captcha_solve_result"

func (CaptchaSolveResult) Default added in v0.64.0

func (CaptchaSolveResult) MarshalJSON added in v0.64.0

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

type CdpConnect added in v0.64.0

type CdpConnect string // Always "cdp_connect"

func (CdpConnect) Default added in v0.64.0

func (c CdpConnect) Default() CdpConnect

func (CdpConnect) MarshalJSON added in v0.64.0

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

type CdpDisconnect added in v0.64.0

type CdpDisconnect string // Always "cdp_disconnect"

func (CdpDisconnect) Default added in v0.64.0

func (c CdpDisconnect) Default() CdpDisconnect

func (CdpDisconnect) MarshalJSON added in v0.64.0

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

type Connection added in v0.64.0

type Connection string // Always "connection"

func (Connection) Default added in v0.64.0

func (c Connection) Default() Connection

func (Connection) MarshalJSON added in v0.64.0

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

type Console added in v0.59.0

type Console string // Always "console"

func (Console) Default added in v0.59.0

func (c Console) Default() Console

func (Console) MarshalJSON added in v0.59.0

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

type ConsoleError added in v0.57.0

type ConsoleError string // Always "console_error"

func (ConsoleError) Default added in v0.57.0

func (c ConsoleError) Default() ConsoleError

func (ConsoleError) MarshalJSON added in v0.57.0

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

type ConsoleLog added in v0.57.0

type ConsoleLog string // Always "console_log"

func (ConsoleLog) Default added in v0.57.0

func (c ConsoleLog) Default() ConsoleLog

func (ConsoleLog) MarshalJSON added in v0.57.0

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

type Constant

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

type Control added in v0.64.0

type Control string // Always "control"

func (Control) Default added in v0.64.0

func (c Control) Default() Control

func (Control) MarshalJSON added in v0.64.0

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

type DeploymentState

type DeploymentState string // Always "deployment_state"

func (DeploymentState) Default

func (c DeploymentState) Default() DeploymentState

func (DeploymentState) MarshalJSON

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

type Error

type Error string // Always "error"

func (Error) Default

func (c Error) Default() Error

func (Error) MarshalJSON

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

type Interaction added in v0.59.0

type Interaction string // Always "interaction"

func (Interaction) Default added in v0.59.0

func (c Interaction) Default() Interaction

func (Interaction) MarshalJSON added in v0.59.0

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

type InteractionClick added in v0.57.0

type InteractionClick string // Always "interaction_click"

func (InteractionClick) Default added in v0.57.0

func (c InteractionClick) Default() InteractionClick

func (InteractionClick) MarshalJSON added in v0.57.0

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

type InteractionKey added in v0.57.0

type InteractionKey string // Always "interaction_key"

func (InteractionKey) Default added in v0.57.0

func (c InteractionKey) Default() InteractionKey

func (InteractionKey) MarshalJSON added in v0.57.0

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

type InteractionScrollSettled added in v0.57.0

type InteractionScrollSettled string // Always "interaction_scroll_settled"

func (InteractionScrollSettled) Default added in v0.57.0

func (InteractionScrollSettled) MarshalJSON added in v0.57.0

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

type InvocationState

type InvocationState string // Always "invocation_state"

func (InvocationState) Default

func (c InvocationState) Default() InvocationState

func (InvocationState) MarshalJSON

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

type LiveViewConnect added in v0.64.0

type LiveViewConnect string // Always "live_view_connect"

func (LiveViewConnect) Default added in v0.64.0

func (c LiveViewConnect) Default() LiveViewConnect

func (LiveViewConnect) MarshalJSON added in v0.64.0

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

type LiveViewDisconnect added in v0.64.0

type LiveViewDisconnect string // Always "live_view_disconnect"

func (LiveViewDisconnect) Default added in v0.64.0

func (LiveViewDisconnect) MarshalJSON added in v0.64.0

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

type Log

type Log string // Always "log"

func (Log) Default

func (c Log) Default() Log

func (Log) MarshalJSON

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

type ManagedAuthState added in v0.31.1

type ManagedAuthState string // Always "managed_auth_state"

func (ManagedAuthState) Default added in v0.31.1

func (c ManagedAuthState) Default() ManagedAuthState

func (ManagedAuthState) MarshalJSON added in v0.31.1

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

type Monitor added in v0.64.0

type Monitor string // Always "monitor"

func (Monitor) Default added in v0.64.0

func (c Monitor) Default() Monitor

func (Monitor) MarshalJSON added in v0.64.0

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

type MonitorDisconnected added in v0.57.0

type MonitorDisconnected string // Always "monitor_disconnected"

func (MonitorDisconnected) Default added in v0.57.0

func (MonitorDisconnected) MarshalJSON added in v0.57.0

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

type MonitorInitFailed added in v0.57.0

type MonitorInitFailed string // Always "monitor_init_failed"

func (MonitorInitFailed) Default added in v0.57.0

func (MonitorInitFailed) MarshalJSON added in v0.57.0

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

type MonitorReconnectFailed added in v0.57.0

type MonitorReconnectFailed string // Always "monitor_reconnect_failed"

func (MonitorReconnectFailed) Default added in v0.57.0

func (MonitorReconnectFailed) MarshalJSON added in v0.57.0

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

type MonitorReconnected added in v0.57.0

type MonitorReconnected string // Always "monitor_reconnected"

func (MonitorReconnected) Default added in v0.57.0

func (MonitorReconnected) MarshalJSON added in v0.57.0

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

type MonitorScreenshot added in v0.57.0

type MonitorScreenshot string // Always "monitor_screenshot"

func (MonitorScreenshot) Default added in v0.57.0

func (MonitorScreenshot) MarshalJSON added in v0.57.0

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

type Network added in v0.59.0

type Network string // Always "network"

func (Network) Default added in v0.59.0

func (c Network) Default() Network

func (Network) MarshalJSON added in v0.59.0

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

type NetworkIdle added in v0.57.0

type NetworkIdle string // Always "network_idle"

func (NetworkIdle) Default added in v0.57.0

func (c NetworkIdle) Default() NetworkIdle

func (NetworkIdle) MarshalJSON added in v0.57.0

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

type NetworkLoadingFailed added in v0.57.0

type NetworkLoadingFailed string // Always "network_loading_failed"

func (NetworkLoadingFailed) Default added in v0.57.0

func (NetworkLoadingFailed) MarshalJSON added in v0.57.0

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

type NetworkRequest added in v0.57.0

type NetworkRequest string // Always "network_request"

func (NetworkRequest) Default added in v0.57.0

func (c NetworkRequest) Default() NetworkRequest

func (NetworkRequest) MarshalJSON added in v0.57.0

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

type NetworkResponse added in v0.57.0

type NetworkResponse string // Always "network_response"

func (NetworkResponse) Default added in v0.57.0

func (c NetworkResponse) Default() NetworkResponse

func (NetworkResponse) MarshalJSON added in v0.57.0

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

type Page added in v0.59.0

type Page string // Always "page"

func (Page) Default added in v0.59.0

func (c Page) Default() Page

func (Page) MarshalJSON added in v0.59.0

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

type PageDomContentLoaded added in v0.57.0

type PageDomContentLoaded string // Always "page_dom_content_loaded"

func (PageDomContentLoaded) Default added in v0.57.0

func (PageDomContentLoaded) MarshalJSON added in v0.57.0

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

type PageLayoutSettled added in v0.57.0

type PageLayoutSettled string // Always "page_layout_settled"

func (PageLayoutSettled) Default added in v0.57.0

func (PageLayoutSettled) MarshalJSON added in v0.57.0

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

type PageLayoutShift added in v0.57.0

type PageLayoutShift string // Always "page_layout_shift"

func (PageLayoutShift) Default added in v0.57.0

func (c PageLayoutShift) Default() PageLayoutShift

func (PageLayoutShift) MarshalJSON added in v0.57.0

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

type PageLcp added in v0.57.0

type PageLcp string // Always "page_lcp"

func (PageLcp) Default added in v0.57.0

func (c PageLcp) Default() PageLcp

func (PageLcp) MarshalJSON added in v0.57.0

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

type PageLoad added in v0.57.0

type PageLoad string // Always "page_load"

func (PageLoad) Default added in v0.57.0

func (c PageLoad) Default() PageLoad

func (PageLoad) MarshalJSON added in v0.57.0

func (c PageLoad) MarshalJSON() ([]byte, error)
type PageNavigation string // Always "page_navigation"
func (c PageNavigation) Default() PageNavigation
func (c PageNavigation) MarshalJSON() ([]byte, error)
type PageNavigationSettled string // Always "page_navigation_settled"
func (c PageNavigationSettled) MarshalJSON() ([]byte, error)

type PageTabOpened added in v0.57.0

type PageTabOpened string // Always "page_tab_opened"

func (PageTabOpened) Default added in v0.57.0

func (c PageTabOpened) Default() PageTabOpened

func (PageTabOpened) MarshalJSON added in v0.57.0

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

type Screenshot added in v0.64.0

type Screenshot string // Always "screenshot"

func (Screenshot) Default added in v0.64.0

func (c Screenshot) Default() Screenshot

func (Screenshot) MarshalJSON added in v0.64.0

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

type ServiceCrashed added in v0.64.0

type ServiceCrashed string // Always "service_crashed"

func (ServiceCrashed) Default added in v0.64.0

func (c ServiceCrashed) Default() ServiceCrashed

func (ServiceCrashed) MarshalJSON added in v0.64.0

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

type SseHeartbeat

type SseHeartbeat string // Always "sse_heartbeat"

func (SseHeartbeat) Default

func (c SseHeartbeat) Default() SseHeartbeat

func (SseHeartbeat) MarshalJSON

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

type System added in v0.59.0

type System string // Always "system"

func (System) Default added in v0.59.0

func (c System) Default() System

func (System) MarshalJSON added in v0.59.0

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

type SystemOomKill added in v0.64.0

type SystemOomKill string // Always "system_oom_kill"

func (SystemOomKill) Default added in v0.64.0

func (c SystemOomKill) Default() SystemOomKill

func (SystemOomKill) MarshalJSON added in v0.64.0

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

Jump to

Keyboard shortcuts

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