Versions in this module Expand all Collapse all v0 v0.12.4 Nov 22, 2025 Changes in this version type ClientImpl + AppInitFn func() error + func (c *ClientImpl) RegisterAppInitFn(fn func() error) v0.12.3 Nov 18, 2025 Changes in this version + type AppManifest struct + AppMeta AppMeta + ConfigSchema map[string]any + DataSchema map[string]any + Secrets map[string]SecretMeta type AppMeta + Icon string + IconColor string type ClientImpl + Secrets map[string]SecretMeta + SecretsLock *sync.Mutex + func (c *ClientImpl) DeclareSecret(name string, desc string, optional bool) + func (c *ClientImpl) GetAppManifest() AppManifest + func (c *ClientImpl) GetSecrets() map[string]SecretMeta + func (c *ClientImpl) PrintAppManifest() + type SecretMeta struct + Desc string + Optional bool v0.12.2 Nov 5, 2025 Changes in this version + const ChildrenPropKey + const DefaultComponentName + const DefaultListenAddr + const GlobalContextType_async + const GlobalContextType_effect + const GlobalContextType_event + const GlobalContextType_render + const NotifyDebounceTime + const NotifyMaxCadence + const NotifyMaxDebounceTime + const SSEKeepAliveDuration + const TsunamiListenAddrEnvVar + func DefineComponentEx[P any](client *ClientImpl, name string, renderFn func(props P) any) vdom.Component[P] + func GenerateConfigSchema(root *RootElem) map[string]any + func GenerateDataSchema(root *RootElem) map[string]any + func UseEffect(vc *RenderContextImpl, fn func() func(), deps []any) + func UseId(vc *RenderContextImpl) string + func UseLocal(vc *RenderContextImpl, initialVal any) string + func UseRef(vc *RenderContextImpl, hookInitialVal any) any + func UseRenderTs(vc *RenderContextImpl) int64 + func UseResync(vc *RenderContextImpl) bool + func UseVDomRef(vc *RenderContextImpl) any + type AppMeta struct + ShortDesc string + Title string + type AtomImpl struct + func MakeAtomImpl[T any](initialVal T, meta *AtomMeta) *AtomImpl[T] + func (a *AtomImpl[T]) GetAtomType() reflect.Type + func (a *AtomImpl[T]) GetMeta() *AtomMeta + func (a *AtomImpl[T]) GetUsedBy() []string + func (a *AtomImpl[T]) GetVal() any + func (a *AtomImpl[T]) SetUsedBy(waveId string, used bool) + func (a *AtomImpl[T]) SetVal(val any) error + type AtomMeta struct + Description string + Enum []string + Max *float64 + Min *float64 + Pattern string + Units string + type ChildKey struct + Idx int + Key string + Tag string + type ClientImpl struct + AssetsFS fs.FS + CurrentClientId string + DoneCh chan struct{} + DoneReason string + GlobalEventHandler func(event vdom.VDomEvent) + IsDone bool + Lock *sync.Mutex + ManifestFileBytes []byte + Meta AppMeta + OpenModals map[string]*ModalState + OpenModalsLock *sync.Mutex + Root *RootElem + RootElem *vdom.VDomElem + SSEChannels map[string]chan ssEvent + SSEChannelsLock *sync.Mutex + ServerId string + SetupFn func() + StaticFS fs.FS + UrlHandlerMux *http.ServeMux + func GetDefaultClient() *ClientImpl + func (c *ClientImpl) CloseAllModals() + func (c *ClientImpl) CloseModal(modalId string, result bool) + func (c *ClientImpl) GetAppMeta() AppMeta + func (c *ClientImpl) GetIsDone() bool + func (c *ClientImpl) HandleDynFunc(pattern string, fn func(http.ResponseWriter, *http.Request)) + func (c *ClientImpl) RegisterSSEChannel(connectionId string) chan ssEvent + func (c *ClientImpl) RegisterSetupFn(fn func()) + func (c *ClientImpl) RunEvents(events []vdom.VDomEvent) + func (c *ClientImpl) RunMain() + func (c *ClientImpl) SendAsyncInitiation() error + func (c *ClientImpl) SendSSEvent(event ssEvent) error + func (c *ClientImpl) SetAppMeta(m AppMeta) + func (c *ClientImpl) SetGlobalEventHandler(handler func(event vdom.VDomEvent)) + func (c *ClientImpl) ShowModal(config rpctypes.ModalConfig) chan bool + func (c *ClientImpl) UnregisterSSEChannel(connectionId string) + type ComponentImpl struct + Children []*ComponentImpl + ContainingComp string + Elem *vdom.VDomElem + Hooks []*Hook + Key string + Mounted bool + RenderedComp *ComponentImpl + Tag string + Text string + UsedAtoms map[string]bool + WaveId string + type EffectContextImpl struct + Root *RootElem + WorkElem EffectWorkElem + WorkType string + func GetGlobalEffectContext() *EffectContextImpl + type EffectWorkElem struct + CompTag string + EffectIndex int + WaveId string + type EventContextImpl struct + Event vdom.VDomEvent + Root *RootElem + func GetGlobalEventContext() *EventContextImpl + type Hook struct + Deps []any + Fn func() func() + Idx int + Init bool + UnmountFn func() + Val any + type ModalState struct + Config rpctypes.ModalConfig + ResultChan chan bool + type RenderContextImpl struct + Comp *ComponentImpl + HookIdx int + RenderOpts *RenderOpts + Root *RootElem + UsedAtoms map[string]bool + func GetGlobalRenderContext() *RenderContextImpl + func (vc *RenderContextImpl) GetCompWaveId() string + type RenderOpts struct + Resync bool + type RootElem struct + Atoms map[string]genAtom + CFuncs map[string]any + Client *ClientImpl + CompMap map[string]*ComponentImpl + EffectWorkQueue []*EffectWorkElem + RefOperations []vdom.VDomRefOperation + RenderTs int64 + Root *ComponentImpl + func MakeRoot(client *ClientImpl) *RootElem + func (r *RootElem) AtomAddRenderWork(atomName string) + func (r *RootElem) Event(event vdom.VDomEvent, globalEventHandler func(vdom.VDomEvent)) + func (r *RootElem) GetAtomVal(name string) any + func (r *RootElem) GetConfigMap() map[string]any + func (r *RootElem) GetDataMap() map[string]any + func (r *RootElem) GetRefOperations() []vdom.VDomRefOperation + func (r *RootElem) MakeRendered() *rpctypes.RenderedElem + func (r *RootElem) QueueRefOp(op vdom.VDomRefOperation) + func (r *RootElem) RegisterAtom(name string, atom genAtom) + func (r *RootElem) RegisterComponent(name string, cfunc any) error + func (r *RootElem) RemoveAtom(name string) + func (r *RootElem) Render(elem *vdom.VDomElem, opts *RenderOpts) + func (r *RootElem) RunWork(opts *RenderOpts) + func (r *RootElem) SetAtomVal(name string, val any) error + func (r *RootElem) UpdateRef(updateRef rpctypes.VDomRefUpdate)