Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*PeerstoreManager) error
func WithCleanupInterval ¶
WithCleanupInterval set the clean up interval. During a clean up run peers that disconnected before the grace period are removed. If unset, the interval is set to half the grace period.
func WithGracePeriod ¶
WithGracePeriod sets the grace period. If a peer doesn't reconnect during the grace period, its data is removed. Default: 1 minute.
type PeerstoreManager ¶
type PeerstoreManager struct {
// contains filtered or unexported fields
}
func NewPeerstoreManager ¶
func (*PeerstoreManager) Close ¶
func (m *PeerstoreManager) Close() error
func (*PeerstoreManager) Start ¶
func (m *PeerstoreManager) Start()
Click to show internal directories.
Click to hide internal directories.