Versions in this module Expand all Collapse all v0 v0.14.6 Oct 10, 2026 v0.14.5 Oct 10, 2026 Changes in this version + func DefineComponent[P any](client *Client, name string, renderFn func(ctx context.Context, props P) any) vdom.Component[P] + func ServeFileOption(w http.ResponseWriter, r *http.Request, option FileHandlerOption) error + type AppOpts struct + CloseOnCtrlC bool + GlobalKeyboardEvents bool + GlobalStyles []byte + NewBlockFlag string + RootComponentName string + TargetNewBlock bool + TargetToolbar *vdom.VDomTargetToolbar + type Client struct + AppOpts AppOpts + DoneCh chan struct{} + DoneReason string + GlobalEventHandler func(client *Client, event vdom.VDomEvent) + GlobalStylesOption *FileHandlerOption + IsDone bool + Lock *sync.Mutex + NewBlockFlag bool + Opts vdom.VDomBackendOpts + OverrideUrlHandler http.Handler + Root *vdom.RootElem + RootElem *vdom.VDomElem + RouteId string + RpcClient *wshutil.WshRpc + RpcContext *wshrpc.RpcContext + ServerImpl *WaveAppServerImpl + SetupFn func() + UrlHandlerMux *mux.Router + VDomContextBlockId string + func MakeClient(appOpts AppOpts) *Client + func (c *Client) CreateVDomContext(target *vdom.VDomTarget) error + func (c *Client) GetAtomVal(name string) any + func (c *Client) GetIsDone() bool + func (c *Client) RegisterComponent(name string, cfunc any) error + func (c *Client) RegisterFileHandler(path string, option FileHandlerOption) + func (c *Client) RegisterFilePrefixHandler(prefix string, optionProvider func(path string) (*FileHandlerOption, error)) + func (c *Client) RegisterUrlPathHandler(path string, handler http.Handler) + func (c *Client) SendAsyncInitiation() error + func (c *Client) SetAtomVal(name string, val any) + func (c *Client) SetAtomVals(m map[string]any) + func (c *Client) SetGlobalEventHandler(handler func(client *Client, event vdom.VDomEvent)) + func (c *Client) SetOverrideUrlHandler(handler http.Handler) + func (c *Client) SetRootElem(elem *vdom.VDomElem) + func (client *Client) AddSetupFn(fn func()) + func (client *Client) Connect() error + func (client *Client) RegisterDefaultFlags() + func (client *Client) RunMain() + type FileHandlerOption struct + Data []byte + ETag string + File fs.File + FilePath string + MimeType string + Reader io.Reader + type StreamingResponseWriter struct + func NewStreamingResponseWriter(respChan chan<- wshrpc.RespOrErrorUnion[wshrpc.VDomUrlRequestResponse]) *StreamingResponseWriter + func (w *StreamingResponseWriter) Close() error + func (w *StreamingResponseWriter) Header() http.Header + func (w *StreamingResponseWriter) Write(data []byte) (int, error) + func (w *StreamingResponseWriter) WriteHeader(statusCode int) + type WaveAppServerImpl struct + BlockId string + Client *Client + func (*WaveAppServerImpl) WshServerImpl() + func (impl *WaveAppServerImpl) VDomRenderCommand(ctx context.Context, feUpdate vdom.VDomFrontendUpdate) chan wshrpc.RespOrErrorUnion[*vdom.VDomBackendUpdate] + func (impl *WaveAppServerImpl) VDomUrlRequestCommand(ctx context.Context, data wshrpc.VDomUrlRequestData) chan wshrpc.RespOrErrorUnion[wshrpc.VDomUrlRequestResponse]