Documentation ¶
Index ¶
- type Client
- func (c Client) BaseURL() string
- func (c Client) Call(method string, path string, body map[string]interface{}) (gjson.Result, error)
- func (c Client) CancelInvoice(hash []byte) (gjson.Result, error)
- func (c *Client) ConfigFile(path string)
- func (c Client) CreateHoldInvoice(value int, hash []byte, memo string) (gjson.Result, error)
- func (c Client) CreateInvoice(value int, memo string) (gjson.Result, error)
- func (c Client) DecodeInvoice(invoice string) (gjson.Result, error)
- func (c Client) GetMacaroon() string
- func (c Client) GetTlsCert() []byte
- func (c Client) ListInvoices() (gjson.Result, error)
- func (c Client) LookupInvoice(hash string) (gjson.Result, error)
- func (c Client) PayInvoice(invoice string, timeout int32) (gjson.Result, error)
- func (c Client) SettleInvoice(preimage []byte) (gjson.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Host string `json:"Host"` Cert string `json:"Cert"` Macaroon string `json:"Macaroon"` }
func (*Client) ConfigFile ¶
func (Client) CreateHoldInvoice ¶
func (Client) CreateInvoice ¶
func (Client) GetMacaroon ¶
func (Client) GetTlsCert ¶
func (Client) PayInvoice ¶
Click to show internal directories.
Click to hide internal directories.