Documentation ¶
Overview ¶
Package client implements a remoting client for reflow pools.
Index ¶
- type Client
- func (c *Client) Alloc(ctx context.Context, id string) (pool.Alloc, error)
- func (c *Client) Allocs(ctx context.Context) ([]pool.Alloc, error)
- func (c *Client) ID() string
- func (c *Client) Offer(ctx context.Context, id string) (pool.Offer, error)
- func (c *Client) Offers(ctx context.Context) ([]pool.Offer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client implements a reflow pool by dispatching calls to a remote implementation.
func New ¶
New creates a new Client which connects to a given host using the provided http.Client. If http.Client is nil, the default client is used. If logger is not nil, Client logs detailed request/response information to it.
Click to show internal directories.
Click to hide internal directories.