Documentation ¶
Index ¶
- type 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 vdom.CFunc)
- 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) SetRootElem(elem *vdom.VDomElem)
- type VDomServerImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Lock *sync.Mutex Root *vdom.RootElem RootElem *vdom.VDomElem RpcClient *wshutil.WshRpc RpcContext *wshrpc.RpcContext ServerImpl *VDomServerImpl IsDone bool RouteId string VDomContextBlockId string DoneReason string DoneCh chan struct{} Opts vdom.VDomBackendOpts GlobalEventHandler func(client *Client, event vdom.VDomEvent) }
func MakeClient ¶
func MakeClient(opts *vdom.VDomBackendOpts) (*Client, error)
func (*Client) CreateVDomContext ¶
func (c *Client) CreateVDomContext(target *vdom.VDomTarget) error
func (*Client) GetAtomVal ¶
func (*Client) RegisterComponent ¶
func (*Client) SendAsyncInitiation ¶
func (*Client) SetAtomVal ¶
func (*Client) SetAtomVals ¶
func (*Client) SetGlobalEventHandler ¶
func (*Client) SetRootElem ¶
type VDomServerImpl ¶
func (*VDomServerImpl) VDomRenderCommand ¶
func (impl *VDomServerImpl) VDomRenderCommand(ctx context.Context, feUpdate vdom.VDomFrontendUpdate) (*vdom.VDomBackendUpdate, error)
func (*VDomServerImpl) WshServerImpl ¶
func (*VDomServerImpl) WshServerImpl()
Click to show internal directories.
Click to hide internal directories.