Documentation ¶
Index ¶
- Constants
- Variables
- func NewServer() *server
- type ClnPlugin
- type CustomMessageRequest
- type FeatureBits
- type Hook
- type Htlc
- type HtlcAccepted
- type InitConfiguration
- type InitMessage
- type LogNotification
- type Manifest
- type Onion
- type Option
- type Proxy
- type Request
- type Response
- type Result
- type RpcError
- type RpcMethod
Constants ¶
View Source
const ( SubscriberTimeoutOption = "lsp-subscribertimeout" ListenAddressOption = "lsp-listen" )
View Source
const ( SpecVersion = "2.0" ParseError = -32700 InvalidRequest = -32600 MethodNotFound = -32601 InvalidParams = -32603 InternalErr = -32603 )
Variables ¶
View Source
var ( DefaultSubscriberTimeout = "1m" DefaultChannelAcceptorScript = "" LspsFeatureBit = "" /* 184-byte string literal not displayed */ )
View Source
var (
TwoNewLines = []byte("\n\n")
)
Functions ¶
Types ¶
type ClnPlugin ¶
type ClnPlugin struct {
// contains filtered or unexported fields
}
func NewClnPlugin ¶
type CustomMessageRequest ¶
type FeatureBits ¶
type HtlcAccepted ¶
type InitConfiguration ¶
type InitConfiguration struct { LightningDir string `json:"lightning-dir"` RpcFile string `json:"rpc-file"` Startup bool `json:"startup"` Network string `json:"network"` FeatureSet *FeatureBits `json:"feature_set"` Proxy *Proxy `json:"proxy"` TorV3Enabled bool `json:"torv3-enabled"` AlwaysUseProxy bool `json:"always_use_proxy"` }
type InitMessage ¶
type InitMessage struct { Options map[string]interface{} `json:"options,omitempty"` Configuration *InitConfiguration `json:"configuration,omitempty"` }
type LogNotification ¶
type Manifest ¶
type Manifest struct { Options []Option `json:"options"` RpcMethods []*RpcMethod `json:"rpcmethods"` Dynamic bool `json:"dynamic"` Subscriptions []string `json:"subscriptions,omitempty"` Hooks []Hook `json:"hooks,omitempty"` FeatureBits *FeatureBits `json:"featurebits,omitempty"` NonNumericIds bool `json:"nonnumericids"` }
type Request ¶
type Request struct { Id json.RawMessage `json:"id,omitempty"` Method string `json:"method"` JsonRpc string `json:"jsonrpc"` Params json.RawMessage `json:"params,omitempty"` }
type Response ¶
type Response struct { Id json.RawMessage `json:"id"` JsonRpc string `json:"jsonrpc"` Result Result `json:"result,omitempty"` Error *RpcError `json:"error,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.