Versions in this module Expand all Collapse all v0 v0.4.0 Feb 5, 2025 Changes in this version + const JSONRPC_2 + const OK + const SUBSCRIBE + const UNSUBSCRIBE + type ErrorResponse struct + Code int + Message string + type InfoSetting struct + Supported []SupportedMethod + type NotificationParams struct + Payload json.RawMessage + SubId string + type RequestParams struct + Filters []string + Kind string + SubId string + type Result struct + Status string + SubId string + type SubscriptionKind int + const Bolt11MeltQuote + const Bolt11MintQuote + const ProofState + const Unknown + func StringToKind(kind string) SubscriptionKind + func (kind SubscriptionKind) String() string + type SupportedMethod struct + Commands []string + Method string + Unit string + type WsError struct + ErrResponse ErrorResponse + Id int + JsonRPC string + func NewWsError(code int, message string, id int) WsError + func (e *WsError) UnmarshalJSON(data []byte) error + func (e WsError) Error() string + type WsNotification struct + JsonRPC string + Method string + Params NotificationParams + func (n *WsNotification) UnmarshalJSON(data []byte) error + type WsRequest struct + Id int + JsonRPC string + Method string + Params RequestParams + type WsResponse struct + Id int + JsonRPC string + Result Result + func (r *WsResponse) UnmarshalJSON(data []byte) error