refresher

package
v0.0.0-...-3d6a9bf Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package refresher is responsible for refreshing application state on specific events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meshnet

type Meshnet struct {
	// contains filtered or unexported fields
}

Meshnet refreshes peers.

func NewMeshnet

func NewMeshnet(
	api mesh.CachingMapper,
	checker meshn.Checker,
	man config.Manager,
	netw Refresher,
) *Meshnet

NewMeshnet is a default constructor for Meshnet.

func (*Meshnet) NotifyPeerUpdate

func (m *Meshnet) NotifyPeerUpdate(peerIds []string) error

NotifyPeerUpdate refreshes meshnet peers.

type Refresher

type Refresher interface {
	Refresh(mesh.MachineMap) error
}

Refresher updates active meshnet peer list.

Jump to

Keyboard shortcuts

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