Documentation ¶
Index ¶
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
}
Client implements client side of shrex/nd protocol to obtain namespaced shares data from remote peers.
func (*Client) RequestND ¶ added in v0.6.3
func (c *Client) RequestND( ctx context.Context, root *share.Root, nID namespace.ID, peer peer.ID, ) (share.NamespacedShares, error)
RequestND requests namespaced data from the given peer. Returns valid data with its verified inclusion against the share.Root.
type Option ¶
type Option func(*Parameters)
Option is the functional option that is applied to the shrex/eds protocol to configure its parameters.
func WithConcurrencyLimit ¶
WithConcurrencyLimit is a functional option that configures the `concurrencyLimit` parameter
func WithNetworkID ¶
WithNetworkID is a functional option that configures the `networkID` parameter
func WithReadTimeout ¶
WithReadTimeout is a functional option that configures the `readTimeout` parameter
func WithServeTimeout ¶
WithServeTimeout is a functional option that configures the `serveTimeout` parameter
func WithWriteTimeout ¶
WithWriteTimeout is a functional option that configures the `writeTimeout` parameter
type Parameters ¶
type Parameters struct {
// contains filtered or unexported fields
}
Parameters is the set of parameters that must be configured for the shrex/eds protocol.
func DefaultParameters ¶
func DefaultParameters() *Parameters
func (*Parameters) Validate ¶
func (p *Parameters) Validate() error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements server side of shrex/nd protocol to serve namespaced share to remote peers.