bldr_web_plugin_browser

package
v0.51.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const SRPCWebPluginBrowserHostServiceID = "bldr.web.plugin.browser.WebPluginBrowserHost"

Variables

This section is empty.

Functions

func NewSRPCWebPluginBrowserHostHandler

func NewSRPCWebPluginBrowserHostHandler(impl SRPCWebPluginBrowserHostServer, serviceID string) srpc.Handler

NewSRPCWebPluginBrowserHostHandler constructs a new RPC handler. serviceID: if empty, uses default: bldr.web.plugin.browser.WebPluginBrowserHost

func SRPCRegisterWebPluginBrowserHost

func SRPCRegisterWebPluginBrowserHost(mux srpc.Mux, impl SRPCWebPluginBrowserHostServer) error

SRPCRegisterWebPluginBrowserHost registers the implementation with the mux. Uses the default serviceID: bldr.web.plugin.browser.WebPluginBrowserHost

Types

type SRPCWebPluginBrowserHostClient

type SRPCWebPluginBrowserHostClient interface {
	// SRPCClient returns the underlying SRPC client.
	SRPCClient() srpc.Client

	// PluginRpc handles an incoming RPC call from a remote plugin for the web plugin.
	// Id: remote plugin id
	PluginRpc(ctx context.Context) (SRPCWebPluginBrowserHost_PluginRpcClient, error)
}

func NewSRPCWebPluginBrowserHostClient

func NewSRPCWebPluginBrowserHostClient(cc srpc.Client) SRPCWebPluginBrowserHostClient

func NewSRPCWebPluginBrowserHostClientWithServiceID

func NewSRPCWebPluginBrowserHostClientWithServiceID(cc srpc.Client, serviceID string) SRPCWebPluginBrowserHostClient

type SRPCWebPluginBrowserHostHandler

type SRPCWebPluginBrowserHostHandler struct {
	// contains filtered or unexported fields
}

func (SRPCWebPluginBrowserHostHandler) GetMethodIDs

func (SRPCWebPluginBrowserHostHandler) GetMethodIDs() []string

func (*SRPCWebPluginBrowserHostHandler) GetServiceID

func (d *SRPCWebPluginBrowserHostHandler) GetServiceID() string

func (*SRPCWebPluginBrowserHostHandler) InvokeMethod

func (d *SRPCWebPluginBrowserHostHandler) InvokeMethod(
	serviceID, methodID string,
	strm srpc.Stream,
) (bool, error)

func (SRPCWebPluginBrowserHostHandler) InvokeMethod_PluginRpc

type SRPCWebPluginBrowserHostServer

type SRPCWebPluginBrowserHostServer interface {
	// PluginRpc handles an incoming RPC call from a remote plugin for the web plugin.
	// Id: remote plugin id
	PluginRpc(SRPCWebPluginBrowserHost_PluginRpcStream) error
}

type SRPCWebPluginBrowserHost_PluginRpcClient

type SRPCWebPluginBrowserHost_PluginRpcClient interface {
	srpc.Stream
	Send(*rpcstream.RpcStreamPacket) error
	Recv() (*rpcstream.RpcStreamPacket, error)
	RecvTo(*rpcstream.RpcStreamPacket) error
}

type SRPCWebPluginBrowserHost_PluginRpcStream

type SRPCWebPluginBrowserHost_PluginRpcStream interface {
	srpc.Stream
	Send(*rpcstream.RpcStreamPacket) error
	SendAndClose(*rpcstream.RpcStreamPacket) error
	Recv() (*rpcstream.RpcStreamPacket, error)
	RecvTo(*rpcstream.RpcStreamPacket) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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