Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close()
- func (c *Client) Context() context.Context
- func (c *Client) New(cmd string, opts ...Option) *Request
- func (c *Client) Send(cmd string, body command.Body) (cr.Response, error)
- func (c *Client) SendTo(pid peerCore.ID, cmd string, body command.Body) (cr.Response, error)
- func (c *Client) SendToWithTimeout(pid peerCore.ID, cmd string, body command.Body, timeout time.Duration) (cr.Response, error)
- func (c *Client) SendWithTimeout(cmd string, body command.Body, timeout time.Duration) (cr.Response, error)
- type Option
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SendToWithTimeout ¶ added in v0.10.1
type Response ¶ added in v0.10.0
type Response struct { io.ReadWriter cr.Response // contains filtered or unexported fields }
func (*Response) CloseWrite ¶ added in v0.11.1
func (r *Response) CloseWrite()
Click to show internal directories.
Click to hide internal directories.