Documentation
¶
Index ¶
- Constants
- func NewSRPCWebPluginBrowserHostHandler(impl SRPCWebPluginBrowserHostServer, serviceID string) srpc.Handler
- func SRPCRegisterWebPluginBrowserHost(mux srpc.Mux, impl SRPCWebPluginBrowserHostServer) error
- type SRPCWebPluginBrowserHostClient
- type SRPCWebPluginBrowserHostHandler
- func (SRPCWebPluginBrowserHostHandler) GetMethodIDs() []string
- func (d *SRPCWebPluginBrowserHostHandler) GetServiceID() string
- func (d *SRPCWebPluginBrowserHostHandler) InvokeMethod(serviceID, methodID string, strm srpc.Stream) (bool, error)
- func (SRPCWebPluginBrowserHostHandler) InvokeMethod_PluginRpc(impl SRPCWebPluginBrowserHostServer, strm srpc.Stream) error
- type SRPCWebPluginBrowserHostServer
- type SRPCWebPluginBrowserHost_PluginRpcClient
- type SRPCWebPluginBrowserHost_PluginRpcStream
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 (SRPCWebPluginBrowserHostHandler) InvokeMethod_PluginRpc ¶
func (SRPCWebPluginBrowserHostHandler) InvokeMethod_PluginRpc(impl SRPCWebPluginBrowserHostServer, strm srpc.Stream) error
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
}
Click to show internal directories.
Click to hide internal directories.