lprpc_v1

package
v0.0.0-...-786dc5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDecode = errors.New("unable to decode value")

Functions

func Decode

func Decode(r io.Reader, v interface{}) error

Decode decodes from the specified reader into the object, according to the V1 protocol version.

func Encode

func Encode(w io.Writer, v interface{}) error

Encode encodes the specified object in the stream according to the V1 protocol version.

Types

type InvoiceRequest

type InvoiceRequest struct {
	TargetNode  rpc.NodeID `json:"target_node"`
	ChannelSize uint64     `json:"channel_size"`
	Key         string     `json:"key"`
}

type InvoiceResponse

type InvoiceResponse struct {
	Invoice string `json:"invoice"`
}

type PolicyResponse

type PolicyResponse struct {
	Node               rpc.NodeID    `json:"node"`
	NodeAddresses      []string      `json:"addresses"`
	MinChanSize        uint64        `json:"min_chan_size"`
	MaxChanSize        uint64        `json:"max_chan_size"`
	MaxNbChannels      uint          `json:"max_nb_channels"`
	MinChanLifetime    time.Duration `json:"min_chan_lifetime"`
	ChanInvoiceFeeRate float64       `json:"chan_invoice_fee_rate"`
}

PolicyResponse is the policy followed by a some LP node.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳