s4wave_debug

package
v0.51.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SRPCDebugBridgeServiceServiceID = "s4wave.debug.DebugBridgeService"

Variables

This section is empty.

Functions

func NewSRPCDebugBridgeServiceHandler

func NewSRPCDebugBridgeServiceHandler(impl SRPCDebugBridgeServiceServer, serviceID string) srpc.Handler

NewSRPCDebugBridgeServiceHandler constructs a new RPC handler. serviceID: if empty, uses default: s4wave.debug.DebugBridgeService

func SRPCRegisterDebugBridgeService

func SRPCRegisterDebugBridgeService(mux srpc.Mux, impl SRPCDebugBridgeServiceServer) error

SRPCRegisterDebugBridgeService registers the implementation with the mux. Uses the default serviceID: s4wave.debug.DebugBridgeService

Types

type EvalJSRequest

type EvalJSRequest struct {

	// Code is the JavaScript code to evaluate.
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// Url is a URL to import as an ES module (alternative to code).
	// Set by the bridge service; the default export is used as the result.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// IsModule indicates the code is already a full ES module.
	// When true, the bridge stores the code as-is without wrapping in an async IIFE.
	IsModule bool `protobuf:"varint,3,opt,name=is_module,json=isModule,proto3" json:"isModule,omitempty"`
	// contains filtered or unexported fields
}

EvalJSRequest is a request to evaluate JavaScript code.

func (*EvalJSRequest) CloneMessageVT

func (m *EvalJSRequest) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*EvalJSRequest) CloneVT

func (m *EvalJSRequest) CloneVT() *EvalJSRequest

func (*EvalJSRequest) EqualMessageVT

func (this *EvalJSRequest) EqualMessageVT(thatMsg any) bool

func (*EvalJSRequest) EqualVT

func (this *EvalJSRequest) EqualVT(that *EvalJSRequest) bool

func (*EvalJSRequest) GetCode

func (x *EvalJSRequest) GetCode() string

func (*EvalJSRequest) GetIsModule

func (x *EvalJSRequest) GetIsModule() bool

func (*EvalJSRequest) GetUrl

func (x *EvalJSRequest) GetUrl() string

func (*EvalJSRequest) MarshalJSON

func (x *EvalJSRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the EvalJSRequest to JSON.

func (*EvalJSRequest) MarshalProtoJSON

func (x *EvalJSRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the EvalJSRequest message to JSON.

func (*EvalJSRequest) MarshalProtoText

func (x *EvalJSRequest) MarshalProtoText() string

func (*EvalJSRequest) MarshalToSizedBufferVT

func (m *EvalJSRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*EvalJSRequest) MarshalToVT

func (m *EvalJSRequest) MarshalToVT(dAtA []byte) (int, error)

func (*EvalJSRequest) MarshalVT

func (m *EvalJSRequest) MarshalVT() (dAtA []byte, err error)

func (*EvalJSRequest) ProtoMessage

func (*EvalJSRequest) ProtoMessage()

func (*EvalJSRequest) Reset

func (x *EvalJSRequest) Reset()

func (*EvalJSRequest) SizeVT

func (m *EvalJSRequest) SizeVT() (n int)

func (*EvalJSRequest) String

func (x *EvalJSRequest) String() string

func (*EvalJSRequest) UnmarshalJSON

func (x *EvalJSRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the EvalJSRequest from JSON.

func (*EvalJSRequest) UnmarshalProtoJSON

func (x *EvalJSRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the EvalJSRequest message from JSON.

func (*EvalJSRequest) UnmarshalVT

func (m *EvalJSRequest) UnmarshalVT(dAtA []byte) error

type EvalJSResponse

type EvalJSResponse struct {

	// Result is the JSON-stringified result of the evaluation.
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// Error is the error message, if any.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

EvalJSResponse is the response from evaluating JavaScript code.

func (*EvalJSResponse) CloneMessageVT

func (m *EvalJSResponse) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*EvalJSResponse) CloneVT

func (m *EvalJSResponse) CloneVT() *EvalJSResponse

func (*EvalJSResponse) EqualMessageVT

func (this *EvalJSResponse) EqualMessageVT(thatMsg any) bool

func (*EvalJSResponse) EqualVT

func (this *EvalJSResponse) EqualVT(that *EvalJSResponse) bool

func (*EvalJSResponse) GetError

func (x *EvalJSResponse) GetError() string

func (*EvalJSResponse) GetResult

func (x *EvalJSResponse) GetResult() string

func (*EvalJSResponse) MarshalJSON

func (x *EvalJSResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals the EvalJSResponse to JSON.

func (*EvalJSResponse) MarshalProtoJSON

func (x *EvalJSResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the EvalJSResponse message to JSON.

func (*EvalJSResponse) MarshalProtoText

func (x *EvalJSResponse) MarshalProtoText() string

func (*EvalJSResponse) MarshalToSizedBufferVT

func (m *EvalJSResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*EvalJSResponse) MarshalToVT

func (m *EvalJSResponse) MarshalToVT(dAtA []byte) (int, error)

func (*EvalJSResponse) MarshalVT

func (m *EvalJSResponse) MarshalVT() (dAtA []byte, err error)

func (*EvalJSResponse) ProtoMessage

func (*EvalJSResponse) ProtoMessage()

func (*EvalJSResponse) Reset

func (x *EvalJSResponse) Reset()

func (*EvalJSResponse) SizeVT

func (m *EvalJSResponse) SizeVT() (n int)

func (*EvalJSResponse) String

func (x *EvalJSResponse) String() string

func (*EvalJSResponse) UnmarshalJSON

func (x *EvalJSResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the EvalJSResponse from JSON.

func (*EvalJSResponse) UnmarshalProtoJSON

func (x *EvalJSResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the EvalJSResponse message from JSON.

func (*EvalJSResponse) UnmarshalVT

func (m *EvalJSResponse) UnmarshalVT(dAtA []byte) error

type GetPageInfoRequest

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

GetPageInfoRequest is a request to get page information.

func (*GetPageInfoRequest) CloneMessageVT

func (m *GetPageInfoRequest) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*GetPageInfoRequest) CloneVT

func (m *GetPageInfoRequest) CloneVT() *GetPageInfoRequest

func (*GetPageInfoRequest) EqualMessageVT

func (this *GetPageInfoRequest) EqualMessageVT(thatMsg any) bool

func (*GetPageInfoRequest) EqualVT

func (this *GetPageInfoRequest) EqualVT(that *GetPageInfoRequest) bool

func (*GetPageInfoRequest) MarshalJSON

func (x *GetPageInfoRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the GetPageInfoRequest to JSON.

func (*GetPageInfoRequest) MarshalProtoJSON

func (x *GetPageInfoRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GetPageInfoRequest message to JSON.

func (*GetPageInfoRequest) MarshalProtoText

func (x *GetPageInfoRequest) MarshalProtoText() string

func (*GetPageInfoRequest) MarshalToSizedBufferVT

func (m *GetPageInfoRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetPageInfoRequest) MarshalToVT

func (m *GetPageInfoRequest) MarshalToVT(dAtA []byte) (int, error)

func (*GetPageInfoRequest) MarshalVT

func (m *GetPageInfoRequest) MarshalVT() (dAtA []byte, err error)

func (*GetPageInfoRequest) ProtoMessage

func (*GetPageInfoRequest) ProtoMessage()

func (*GetPageInfoRequest) Reset

func (x *GetPageInfoRequest) Reset()

func (*GetPageInfoRequest) SizeVT

func (m *GetPageInfoRequest) SizeVT() (n int)

func (*GetPageInfoRequest) String

func (x *GetPageInfoRequest) String() string

func (*GetPageInfoRequest) UnmarshalJSON

func (x *GetPageInfoRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the GetPageInfoRequest from JSON.

func (*GetPageInfoRequest) UnmarshalProtoJSON

func (x *GetPageInfoRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GetPageInfoRequest message from JSON.

func (*GetPageInfoRequest) UnmarshalVT

func (m *GetPageInfoRequest) UnmarshalVT(dAtA []byte) error

type GetPageInfoResponse

type GetPageInfoResponse struct {

	// Url is the current page URL.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Title is the current page title.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// WebViewId is the web view identifier.
	WebViewId string `protobuf:"bytes,3,opt,name=web_view_id,json=webViewId,proto3" json:"webViewId,omitempty"`
	// DocumentId is the web document identifier.
	DocumentId string `protobuf:"bytes,4,opt,name=document_id,json=documentId,proto3" json:"documentId,omitempty"`
	// contains filtered or unexported fields
}

GetPageInfoResponse is the response containing page information.

func (*GetPageInfoResponse) CloneMessageVT

func (*GetPageInfoResponse) CloneVT

func (*GetPageInfoResponse) EqualMessageVT

func (this *GetPageInfoResponse) EqualMessageVT(thatMsg any) bool

func (*GetPageInfoResponse) EqualVT

func (this *GetPageInfoResponse) EqualVT(that *GetPageInfoResponse) bool

func (*GetPageInfoResponse) GetDocumentId

func (x *GetPageInfoResponse) GetDocumentId() string

func (*GetPageInfoResponse) GetTitle

func (x *GetPageInfoResponse) GetTitle() string

func (*GetPageInfoResponse) GetUrl

func (x *GetPageInfoResponse) GetUrl() string

func (*GetPageInfoResponse) GetWebViewId

func (x *GetPageInfoResponse) GetWebViewId() string

func (*GetPageInfoResponse) MarshalJSON

func (x *GetPageInfoResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals the GetPageInfoResponse to JSON.

func (*GetPageInfoResponse) MarshalProtoJSON

func (x *GetPageInfoResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GetPageInfoResponse message to JSON.

func (*GetPageInfoResponse) MarshalProtoText

func (x *GetPageInfoResponse) MarshalProtoText() string

func (*GetPageInfoResponse) MarshalToSizedBufferVT

func (m *GetPageInfoResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetPageInfoResponse) MarshalToVT

func (m *GetPageInfoResponse) MarshalToVT(dAtA []byte) (int, error)

func (*GetPageInfoResponse) MarshalVT

func (m *GetPageInfoResponse) MarshalVT() (dAtA []byte, err error)

func (*GetPageInfoResponse) ProtoMessage

func (*GetPageInfoResponse) ProtoMessage()

func (*GetPageInfoResponse) Reset

func (x *GetPageInfoResponse) Reset()

func (*GetPageInfoResponse) SizeVT

func (m *GetPageInfoResponse) SizeVT() (n int)

func (*GetPageInfoResponse) String

func (x *GetPageInfoResponse) String() string

func (*GetPageInfoResponse) UnmarshalJSON

func (x *GetPageInfoResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the GetPageInfoResponse from JSON.

func (*GetPageInfoResponse) UnmarshalProtoJSON

func (x *GetPageInfoResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GetPageInfoResponse message from JSON.

func (*GetPageInfoResponse) UnmarshalVT

func (m *GetPageInfoResponse) UnmarshalVT(dAtA []byte) error

type SRPCDebugBridgeServiceClient

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

	EvalJS(ctx context.Context, in *EvalJSRequest) (*EvalJSResponse, error)

	GetPageInfo(ctx context.Context, in *GetPageInfoRequest) (*GetPageInfoResponse, error)

	PluginRpc(ctx context.Context) (SRPCDebugBridgeService_PluginRpcClient, error)
}

func NewSRPCDebugBridgeServiceClient

func NewSRPCDebugBridgeServiceClient(cc srpc.Client) SRPCDebugBridgeServiceClient

func NewSRPCDebugBridgeServiceClientWithServiceID

func NewSRPCDebugBridgeServiceClientWithServiceID(cc srpc.Client, serviceID string) SRPCDebugBridgeServiceClient

type SRPCDebugBridgeServiceHandler

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

func (SRPCDebugBridgeServiceHandler) GetMethodIDs

func (SRPCDebugBridgeServiceHandler) GetMethodIDs() []string

func (*SRPCDebugBridgeServiceHandler) GetServiceID

func (d *SRPCDebugBridgeServiceHandler) GetServiceID() string

func (*SRPCDebugBridgeServiceHandler) InvokeMethod

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

func (SRPCDebugBridgeServiceHandler) InvokeMethod_EvalJS

func (SRPCDebugBridgeServiceHandler) InvokeMethod_GetPageInfo

func (SRPCDebugBridgeServiceHandler) InvokeMethod_GetPageInfo(impl SRPCDebugBridgeServiceServer, strm srpc.Stream) error

func (SRPCDebugBridgeServiceHandler) InvokeMethod_PluginRpc

func (SRPCDebugBridgeServiceHandler) InvokeMethod_PluginRpc(impl SRPCDebugBridgeServiceServer, strm srpc.Stream) error

type SRPCDebugBridgeService_EvalJSStream

type SRPCDebugBridgeService_EvalJSStream interface {
	srpc.Stream
}

type SRPCDebugBridgeService_GetPageInfoStream

type SRPCDebugBridgeService_GetPageInfoStream interface {
	srpc.Stream
}

type SRPCDebugBridgeService_PluginRpcClient

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

type SRPCDebugBridgeService_PluginRpcStream

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

Jump to

Keyboard shortcuts

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