Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
func WithResources ¶
WithResources specifies resource limits for the relay
type Resources ¶
type Resources struct { // MaxCircuits is the maximum number of active relay connections MaxCircuits int // MaxCircuitsPerPeer is the maximum number of active relay connections per peer MaxCircuitsPerPeer int // BufferSize is the buffer size for relaying in each direction BufferSize int }
func DefaultResources ¶
func DefaultResources() Resources
Click to show internal directories.
Click to hide internal directories.