Documentation
¶
Index ¶
Constants ¶
View Source
const ( JSONRPC_2 = "2.0" OK = "OK" SUBSCRIBE = "subscribe" UNSUBSCRIBE = "unsubscribe" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type InfoSetting ¶
type InfoSetting struct {
Supported []SupportedMethod `json:"supported"`
}
type NotificationParams ¶
type NotificationParams struct { SubId string `json:"subId"` Payload json.RawMessage `json:"payload"` }
type RequestParams ¶
type SubscriptionKind ¶
type SubscriptionKind int
const ( Bolt11MintQuote SubscriptionKind = iota Bolt11MeltQuote ProofState Unknown )
func StringToKind ¶
func StringToKind(kind string) SubscriptionKind
func (SubscriptionKind) String ¶
func (kind SubscriptionKind) String() string
type SupportedMethod ¶
type WsError ¶
type WsError struct { JsonRPC string `json:"jsonrpc"` ErrResponse ErrorResponse `json:"error"` Id int `json:"id"` }
func (*WsError) UnmarshalJSON ¶
type WsNotification ¶
type WsNotification struct { JsonRPC string `json:"jsonrpc"` Method string `json:"method"` Params NotificationParams `json:"params"` }
func (*WsNotification) UnmarshalJSON ¶
func (n *WsNotification) UnmarshalJSON(data []byte) error
type WsRequest ¶
type WsRequest struct { JsonRPC string `json:"jsonrpc"` Method string `json:"method"` Params RequestParams `json:"params"` Id int `json:"id"` }
type WsResponse ¶
type WsResponse struct { JsonRPC string `json:"jsonrpc"` Result Result `json:"result"` Id int `json:"id"` }
func (*WsResponse) UnmarshalJSON ¶
func (r *WsResponse) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.