Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
Batch allows us to buffer multiple request/response structures into a single batch request. NOT thread safe
func (*Batch) AddRequest ¶
func (b *Batch) AddRequest(request types.RPCRequest)
AddRequest adds a new request onto the batch
type Client ¶
type Client interface {
SendBatch(context.Context, types.RPCRequests) (types.RPCResponses, error)
}
Click to show internal directories.
Click to hide internal directories.