Versions in this module Expand all Collapse all v5 v5.0.1 Jul 28, 2026 Changes in this version + func RegisterBuiltinPlugin(parseRegistration PluginRegistration) error + func RegisterBuiltinService(parseRegistration ServiceRegistration) error + func ResetGlobalKernelForTesting() error + func ResolveServiceAs[T any](parseKernel *Kernel, parseKey ServiceKey) (T, error) + type ActivationPolicy string + const ActivationPolicyBoot + const ActivationPolicyOpportunistic + const ActivationPolicySession + const ActivationPolicyView + type AssetEntry struct + Bytes int64 + Key string + Status string + type AssetService interface + GetAssetSnapshot func(QueryBudget) (AssetSnapshot, error) + RefreshAssets func(CommandOptions) error + type AssetSnapshot struct + Entries []AssetEntry + Meta SnapshotMeta + type BackendID string + const BackendIDNative + const BackendIDRuntime1 + const BackendIDRuntime2 + type BootstrapOptions struct + DisabledPluginIDs []string + Registrations []PluginRegistration + Services []ServiceRegistration + type CaptureService interface + GetCaptureSnapshot func(QueryBudget) (CaptureSnapshot, error) + type CaptureSnapshot struct + Meta SnapshotMeta + Sessions []string + type CleanupFunc func() error + type CommandOptions struct + Reason string + type Context interface + KernelInfo func() KernelInfo + RegisterCleanup func(CleanupFunc) + RegisterContribution func(ContributionRegistration) error + ResolveService func(ServiceKey) (any, bool) + type ContributionKind string + const ContributionKindDevtoolsAction + const ContributionKindDevtoolsPanel + const ContributionKindDevtoolsSection + type ContributionMetadata struct + ActivationPolicy ActivationPolicy + ExecutionClass ExecutionClass + ID string + Kind ContributionKind + Order int + type ContributionRegistration struct + Metadata ContributionMetadata + Value any + type DOMNodeSnapshot struct + Attributes map[string]string + Children []DOMNodeSnapshot + ID string + Tag string + Text string + type DOMService interface + GetDOMSnapshot func(QueryBudget) (DOMSnapshot, error) + HighlightNode func(string, CommandOptions) error + ScrollNodeIntoView func(string, CommandOptions) error + type DOMSnapshot struct + Meta SnapshotMeta + Root *DOMNodeSnapshot + type DevtoolsAction struct + Label string + MatchCodes []string + MatchSources []string + Run func(DevtoolsActionContext) error + type DevtoolsActionContext struct + Issue DevtoolsIssue + type DevtoolsActionProvider interface + GetDevtoolsActions func() ([]DevtoolsAction, error) + type DevtoolsActionProviderFunc func() ([]DevtoolsAction, error) + func (parseFunc DevtoolsActionProviderFunc) GetDevtoolsActions() ([]DevtoolsAction, error) + type DevtoolsIssue struct + Code string + Docs string + Message string + Path string + Source string + TopFrame string + type DevtoolsSection struct + Lines []string + Name string + Summary map[string]string + type DevtoolsSectionProvider interface + GetDevtoolsSections func() ([]DevtoolsSection, error) + type DevtoolsSectionProviderFunc func() ([]DevtoolsSection, error) + func (parseFunc DevtoolsSectionProviderFunc) GetDevtoolsSections() ([]DevtoolsSection, error) + type DiagnosticsService interface + GetDiagnosticsSnapshot func(QueryBudget) (DiagnosticsSnapshot, error) + type DiagnosticsSnapshot struct + KernelAPIVersion string + Meta SnapshotMeta + PluginEvents []PluginDiagnostic + PluginReports []HealthReport + Runtime []RuntimeDiagnostic + type EventRecord struct + Current string + OccurredAt time.Time + Phase string + Target string + Type string + type EventService interface + GetEventSnapshot func(QueryBudget) (EventSnapshot, error) + type EventSnapshot struct + Events []EventRecord + Meta SnapshotMeta + type ExecutionClass string + const ExecutionClassBackground + const ExecutionClassHot + const ExecutionClassWarm + type FetchCacheEntry struct + Key string + LastError string + LastLoaded time.Time + Loading bool + OwnerPaths []string + Ready bool + ResumePolicy string + Stale bool + SubscriberCount int + UpdatedAt time.Time + type FetchService interface + ClearFetchEntry func(string, CommandOptions) error + GetFetchSnapshot func(QueryBudget) (FetchSnapshot, error) + RevalidateFetchEntry func(string, CommandOptions) error + type FetchSnapshot struct + Entries []FetchCacheEntry + Meta SnapshotMeta + type Handle interface + StopPlugin func() error + type HealthReason string + const HealthReasonBudgetOverrun + const HealthReasonCompatibilityFailure + const HealthReasonPanic + const HealthReasonRepeatedErrors + const HealthReasonStartupError + const HealthReasonStopped + type HealthReport struct + ErrorCount int + Message string + PluginID string + Reason HealthReason + State HealthState + UpdatedAt time.Time + type HealthState string + const HealthStateDegraded + const HealthStateHealthy + const HealthStateQuarantined + const HealthStateStarting + const HealthStateStopped + type Kernel struct + func BootGlobalKernel(parseOptions BootstrapOptions) (*Kernel, error) + func GetGlobalKernel() *Kernel + func NewKernel(parseOptions BootstrapOptions) (*Kernel, error) + func (parseKernel *Kernel) Close() error + func (parseKernel *Kernel) Diagnostics() []PluginDiagnostic + func (parseKernel *Kernel) HealthReports() []HealthReport + func (parseKernel *Kernel) Info() KernelInfo + func (parseKernel *Kernel) ListDevtoolsActions() []DevtoolsAction + func (parseKernel *Kernel) ListDevtoolsSections() []DevtoolsSection + func (parseKernel *Kernel) ResolveService(parseKey ServiceKey) (any, bool) + func (parseKernel *Kernel) SetService(parseKey ServiceKey, parseValue any) + type KernelInfo struct + APIVersion string + type Manifest struct + ActivationPolicy ActivationPolicy + Description string + ID string + OptionalServices []ServiceKey + RequiredServices []ServiceKey + Version string + type Plugin interface + Manifest func() Manifest + StartPlugin func(Context) (Handle, error) + type PluginDiagnostic struct + Message string + Operation string + PluginID string + Reason HealthReason + Report diagnostics.Report + When time.Time + type PluginFactory func() Plugin + type PluginManifestOverride struct + ActivationPolicy ActivationPolicy + Description string + ID string + OptionalServices []ServiceKey + RequiredServices []ServiceKey + Version string + type PluginRegistration struct + Factory PluginFactory + Manifest PluginManifestOverride + func RegisteredBuiltinPlugins() []PluginRegistration + type QueryBudget struct + MaxItems int + type RouteLoaderEntry struct + Error string + HasData bool + Key string + Path string + Pending bool + type RouteMetadata struct + CanonicalURL string + Description string + Title string + type RouteRedirect struct + Cause string + From string + To string + type RouteService interface + GetRouteSnapshot func(QueryBudget) (RouteSnapshot, error) + NavigateRoute func(string, CommandOptions) error + RetryRouteLoader func(string, CommandOptions) error + RevalidateRoute func(CommandOptions) error + type RouteSnapshot struct + LastRedirect RouteRedirect + Loaders []RouteLoaderEntry + Loading bool + Meta SnapshotMeta + Metadata RouteMetadata + Params map[string]string + Path string + Query map[string][]string + Stack []RouteStackEntry + type RouteStackEntry struct + HasBeforeEnter bool + HasBeforeLeave bool + HasLoader bool + ID string + Metadata RouteMetadata + Params map[string]string + Path string + type Runtime2Diagnostic struct + DowngradePath string + DowngradeReason string + FallbackDomain string + FallbackReason string + PatchBytes uint64 + QueueNs uint64 + RegionInstanceID string + RenderNs uint64 + ShardID string + SnapshotBytes uint64 + Text string + TransportTier string + Type string + type Runtime2MetaService interface + GetRuntime2MetaSnapshot func(QueryBudget) (Runtime2MetaSnapshot, error) + type Runtime2MetaSnapshot struct + Capabilities map[string]bool + Diagnostics []Runtime2Diagnostic + Meta SnapshotMeta + Regions []Runtime2RegionSnapshot + type Runtime2RegionSnapshot struct + AssignedWorkerShard string + DiagnosticCount int + DispatchToCommitNs uint64 + DispatchToPatchReadyNs uint64 + DroppedStalePatchCount uint64 + Epoch uint64 + FallbackReason string + HasHydratedShellAnchor bool + HasPatchDowngrade bool + HasPostHydrationAttached bool + HasSnapshotDowngrade bool + IgnoredStaleDiagnosticCount uint64 + IsHydrationComplete bool + LastCommittedVersion uint64 + LastDispatchedVersion uint64 + LastSnapshotVersion uint64 + PatchDowngradePath string + PatchDowngradeReason string + PatchReadyToCommitNs uint64 + RegionInstanceID string + RegionMode string + RendererID string + RepairTriggeredRemountCount uint64 + SnapshotDowngradePath string + SnapshotDowngradeReason string + TransportTier string + type RuntimeBranch struct + CleanupDurationNs int64 + CommitDurationNs int64 + DiffDurationNs int64 + EffectDurationNs int64 + Kind string + Name string + Path string + RenderDurationNs int64 + SelfDurationNs int64 + SubtreeDurationNs int64 + type RuntimeComponentRenderTrace struct + AverageRenderDurationNs int64 + LastRenderDurationNs int64 + LastRenderedAt string + LastTrigger string + Name string + Path string + RenderCount int + RerenderCount int + TotalRenderDurationNs int64 + TriggerCounts map[string]int + type RuntimeDiagnostic struct + Classification string + Code string + ComponentStack []string + Consequence string + Count int + Docs string + Fields map[string]string + Message string + Path string + Recoverable bool + Remediation string + Severity string + Source string + TopFrame string + type RuntimeFlamegraphFrame struct + CleanupDurationNs int64 + CommitDurationNs int64 + Depth int + DiffDurationNs int64 + DurationNs int64 + EffectDurationNs int64 + Kind string + Name string + Path string + RenderDurationNs int64 + SelfDurationNs int64 + StartNs int64 + type RuntimeHook struct + Dependencies string + Kind string + Slot int + Status string + Value string + type RuntimeHydration struct + CorrelationID string + DiscardedNodeCount int + DurationNs int64 + ExistingDOMNodeCount int + Failed bool + Failure string + FallbackCount int + FinishedAt string + MismatchCount int + RecentMessages []string + StartedAt string + Strict bool + type RuntimeInspectionService interface + GetRuntimeSnapshot func(QueryBudget) (RuntimeSnapshot, error) + type RuntimeLog struct + Classification string + Code string + Consequence string + CorrelationID string + Docs string + Domain string + Fields map[string]string + Level string + Message string + Recoverable bool + Remediation string + Timestamp string + TopFrame string + type RuntimeNode struct + Children []RuntimeNode + CleanupDurationNs int64 + CommitDurationNs int64 + DiffDurationNs int64 + Dirty bool + EffectCount int + EffectDurationNs int64 + FineGrained bool + HookCount int + Hooks []RuntimeHook + Kind string + Name string + NeedsUpdate bool + Path string + ReactiveSource string + RenderDurationNs int64 + SelfDurationNs int64 + Signature string + SubtreeDurationNs int64 + UpdateOrigin string + type RuntimeProfiling struct + CleanupExecutions int + CommitCount int + ComponentRenders []RuntimeComponentRenderTrace + EffectExecutions int + FineGrainedCommits int + FineGrainedDescendantHostCommits int + FineGrainedDescendantTextCommits int + FlamegraphFrames []RuntimeFlamegraphFrame + HotBranches []RuntimeBranch + LastCleanupDurationNs int64 + LastCommitDurationNs int64 + LastEffectDurationNs int64 + LastRenderDurationNs int64 + PhaseTotals RuntimeProfilingPhaseTotals + ProcessedUnits int + RecentEvents []RuntimeProfilingEvent + RenderCalls int + ScheduledFiberMarks int + ScheduledGranularMarks int + ScheduledRootUpdates int + Startup RuntimeStartupProfiling + WorkLoopPasses int + type RuntimeProfilingEvent struct + CorrelationID string + Domain string + DurationNs int64 + Fields map[string]string + Name string + Phase string + Target string + Timestamp string + type RuntimeProfilingPhaseTotals struct + CleanupDurationNs int64 + CommitDurationNs int64 + DiffDurationNs int64 + EffectDurationNs int64 + RenderDurationNs int64 + type RuntimeRouteStartupBudget struct + AverageBootstrapDecodedBytes int64 + AverageBootstrapReadDurationNs int64 + AverageCacheWarmupDurationNs int64 + AverageFirstInteractionDurationNs int64 + AverageHydrationDurationNs int64 + AverageInitialRouteDataBytes int64 + AverageServiceWorkerOverheadNs int64 + AverageStartupCommitDurationNs int64 + AverageWASMDecodedBytes int64 + AverageWASMTransferBytes int64 + LastRoutePath string + RouteFamily string + SampleCount int + type RuntimeSnapshot struct + Diagnostics []RuntimeDiagnostic + Hydration RuntimeHydration + Logs []RuntimeLog + Meta SnapshotMeta + Profiling RuntimeProfiling + Root *RuntimeNode + Stats RuntimeStats + type RuntimeStartupProfiling struct + BootstrapDecodedBytes int64 + BootstrapReadDurationNs int64 + CacheWarmupDurationNs int64 + FirstInteractionCaptured bool + FirstInteractionDurationNs int64 + FirstInteractionEvent string + HydrationDurationNs int64 + InitialRouteDataBytes int64 + Mode string + RouteBudgets []RuntimeRouteStartupBudget + ServiceWorkerOverheadNs int64 + StartedAt string + StartupCommitDurationNs int64 + WASMDecodedBytes int64 + WASMTransferBytes int64 + type RuntimeStats struct + ComponentFibers int + DirtyFibers int + Effects int + FineGrainedFibers int + HookEntries int + HostFibers int + TextFibers int + TotalFibers int + type SecurityFinding struct + Code string + Message string + Severity string + type SecurityService interface + GetSecuritySnapshot func(QueryBudget) (SecuritySnapshot, error) + type SecuritySnapshot struct + Findings []SecurityFinding + Meta SnapshotMeta + type ServiceKey string + const ServiceKeyAssets + const ServiceKeyCapture + const ServiceKeyDOM + const ServiceKeyDiagnostics + const ServiceKeyEvents + const ServiceKeyFetch + const ServiceKeyRoute + const ServiceKeyRuntime + const ServiceKeyRuntime2Meta + const ServiceKeySecurity + const ServiceKeyStyle + type ServiceRegistration struct + Key ServiceKey + Value any + func RegisteredBuiltinServices() []ServiceRegistration + type SnapshotMeta struct + BackendID string + Truncated bool + func BuildSnapshotMeta(parseBackend BackendID, isParseTruncated bool) SnapshotMeta + type StylePatchHandle interface + RemoveStylePatch func() error + type StyleService interface + ApplyStyleVariables func(map[string]string, CommandOptions) (StylePatchHandle, error) + GetStyleSnapshot func(QueryBudget) (StyleSnapshot, error) + type StyleSnapshot struct + Meta SnapshotMeta + Stylesheet []string + Variables map[string]string + type SubscriptionHandle struct + func (parseHandle *SubscriptionHandle) Stop() error Other modules containing this package github.com/monstercameron/GoWebComponents/v4