Documentation ¶
Overview ¶
Package testcontainers provides implementations of the privatebtc.NodeService and privatebtc.NodeHandler interfaces the using the https://github.com/testcontainers/testcontainers-go package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeHandler ¶
type NodeHandler struct {
// contains filtered or unexported fields
}
NodeHandler represents a bitcoin node running in a docker container.
func (NodeHandler) HostRPCPort ¶
func (c NodeHandler) HostRPCPort() string
HostRPCPort returns the host RPC port of the container.
func (NodeHandler) InternalIP ¶
func (c NodeHandler) InternalIP() string
InternalIP returns the IP address of the container.
type NodeService ¶
NodeService is a testcontainers implementation of go-privatebtc.NodeService. It is used to create containers.
func (*NodeService) CreateNodes ¶
func (s *NodeService) CreateNodes( ctx context.Context, nodeRequests []privatebtc.CreateNodeRequest, ) ([]privatebtc.NodeHandler, error)
CreateNodes creates bitcoin node containers in parallel.
Click to show internal directories.
Click to hide internal directories.