Documentation ¶
Index ¶
- type Client
- func (c *Client) Account() *simple.Account
- func (c *Client) Address() common.Address
- func (c *Client) Connect(ctx context.Context, peer wire.Address, balance channel.Bal) (*connection.Connection, error)
- func (c *Client) Logf(format string, v ...interface{})
- func (c *Client) NextConnectionRequest(ctx context.Context) (*connection.ConnectionRequest, error)
- func (c *Client) OnChainBalance() (b *big.Int, err error)
- func (c *Client) PerunAddress() wallet.Address
- func (c *Client) Shutdown()
- type ClientConfig
- type PaymentAcceptancePolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func StartClient ¶
func StartClient(ctx context.Context, cfg ClientConfig) (*Client, error)
func (*Client) Connect ¶
func (c *Client) Connect(ctx context.Context, peer wire.Address, balance channel.Bal) (*connection.Connection, error)
func (*Client) NextConnectionRequest ¶
func (c *Client) NextConnectionRequest(ctx context.Context) (*connection.ConnectionRequest, error)
func (*Client) PerunAddress ¶
type ClientConfig ¶
Click to show internal directories.
Click to hide internal directories.