connkeeper

package
v1.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Overview

Package connkeeper allows you to periodically reconnect to the list of connections.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRunning = errors.New("connkeeper running")
)

Functions

This section is empty.

Types

type IConnKeeper

type IConnKeeper interface {
	types.IRunner

	GetSettings() ISettings
	GetNetworkNode() network.INode
}

func NewConnKeeper

func NewConnKeeper(pSett ISettings, pNode network.INode) IConnKeeper

type ISettings

type ISettings interface {
	GetConnections() []string
	GetDuration() time.Duration
}

func NewSettings

func NewSettings(pSett *SSettings) ISettings

type SSettings

type SSettings sSettings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL