Versions in this module Expand all Collapse all v0 v0.1.0 May 8, 2019 Changes in this version + var DefaultTimeout = time.Second * 5 + var InvoiceListeningTimeout = time.Minute * 150 + var WaitPaymentMaxAttempts = 60 + var WaitSendPayTimeout = time.Hour * 24 + type Client struct + LastInvoiceIndex int + Path string + PaymentHandler func(gjson.Result) + func (ln *Client) Call(method string, params ...interface{}) (gjson.Result, error) + func (ln *Client) CallMessage(timeout time.Duration, message JSONRPCMessage) (gjson.Result, error) + func (ln *Client) CallMessageRaw(timeout time.Duration, message JSONRPCMessage) ([]byte, error) + func (ln *Client) CallNamed(method string, params ...interface{}) (gjson.Result, error) + func (ln *Client) CallNamedWithCustomTimeout(timeout time.Duration, method string, params ...interface{}) (res gjson.Result, err error) + func (ln *Client) CallWithCustomTimeout(timeout time.Duration, method string, params ...interface{}) (gjson.Result, error) + func (ln *Client) ListenForInvoices() + func (ln *Client) PayAndWaitUntilResolution(bolt11 string, params map[string]interface{}) (success bool, payment gjson.Result, tries []Try, err error) + type ErrorCommand struct + Code int + Data interface{} + Message string + func (l ErrorCommand) Error() string + type ErrorConnect struct + Message string + Path string + func (c ErrorConnect) Error() string + type ErrorConnectionBroken struct + func (c ErrorConnectionBroken) Error() string + type ErrorJSONDecode struct + Message string + func (j ErrorJSONDecode) Error() string + type ErrorTimeout struct + Seconds int + func (t ErrorTimeout) Error() string + type JSONRPCError struct + Code int + Data interface{} + Message string + type JSONRPCMessage struct + Id interface{} + Method string + Params interface{} + Version string + type JSONRPCResponse struct + Error *JSONRPCError + Id interface{} + Result json.RawMessage + Version string + type Try struct + Error *ErrorCommand + Route interface{} + Success bool