tapdtest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithArgs

func WithArgs(args ...string) optFunc

func WithBinary

func WithBinary(path string) func(*Config)

Set custom binary path.

func WithChainParams

func WithChainParams(chain *chaincfg.Params) optFunc

func WithDir

func WithDir(dir string) optFunc

func WithLND

func WithLND(lnd *lndtest.Harness) optFunc

func WithOutput

func WithOutput(stderr io.Writer, stdout io.Writer) func(*Config)

Update the output.

func WithRESTAddress

func WithRESTAddress(addr string) optFunc

Append a REST address.

func WithRPCAddress

func WithRPCAddress(addr string) optFunc

Append a RPC address.

Types

type Config

type Config struct {
	Args []string
	Path string

	Stderr io.Writer
	Stdout io.Writer

	Dir   string
	Chain *chaincfg.Params

	RPCAddresses  []string
	RESTAddresses []string
}

type Harness

type Harness struct {
	*grpc.ClientConn
	// contains filtered or unexported fields
}

func New

func New(opts ...optFunc) *Harness

func NewUnstarted

func NewUnstarted(opts ...optFunc) *Harness

func (*Harness) AdminMac

func (h *Harness) AdminMac() []byte

func (*Harness) AdminMacPath

func (h *Harness) AdminMacPath() string

func (*Harness) RPCAddress

func (h *Harness) RPCAddress() string

func (*Harness) Start

func (h *Harness) Start()

func (*Harness) Stop

func (h *Harness) Stop() error

func (*Harness) TLSCert

func (h *Harness) TLSCert() []byte

func (*Harness) TLSCertPath

func (h *Harness) TLSCertPath() string

Jump to

Keyboard shortcuts

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