Documentation ¶
Overview ¶
Package dockertest provides implementations of the privatebtc.NodeService and privatebtc.NodeHandler interfaces using the https://github.com/ory/dockertest 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 docker container.
func (NodeHandler) HostRPCPort ¶
func (n NodeHandler) HostRPCPort() string
HostRPCPort returns the host RPC port of the container.
func (NodeHandler) InternalIP ¶
func (n NodeHandler) InternalIP() string
InternalIP returns the internal IP of the container.
type NodeService ¶
NodeService is an ory/dockertest implementation of 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 docker container nodes in parallel.
Click to show internal directories.
Click to hide internal directories.