satdress

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupHttpClient

func SetupHttpClient(useProxy bool, cert []byte) (*http.Client, error)

Types

type BackendParams

type BackendParams interface {
	// contains filtered or unexported methods
}

type CheckInvoiceParams

type CheckInvoiceParams struct {
	Backend BackendParams
	PR      string
	Hash    []byte
	Status  string
}

func CheckInvoice

func CheckInvoice(params CheckInvoiceParams) (CheckInvoiceParams, error)

func MakeInvoice

func MakeInvoice(params Params) (CheckInvoiceParams, error)

type LNBitsParams

type LNBitsParams struct {
	Cert string `json:"certstring"`
	Host string `json:"host"`
	Key  string `json:"key"`
}

type LNDParams

type LNDParams struct {
	Cert       []byte `json:"cert" gorm:"-"`
	CertString string `json:"certstring"`
	Host       string `json:"host"`
	Macaroon   string `json:"macaroon"`
}

type Params

type Params struct {
	Backend         BackendParams
	Msatoshi        int64
	Description     string
	DescriptionHash []byte

	Label string // only used for c-lightning
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL