node

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	IP        string    `json:"ip"`
	Connected time.Time `json:"connected_time"`
}

type Registry

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

func GlobalRegistry

func GlobalRegistry() *Registry

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Add

func (r *Registry) Add(ip string, connectedAt time.Time)

func (*Registry) List

func (r *Registry) List() []Node

func (*Registry) Remove

func (r *Registry) Remove(ip string)

Jump to

Keyboard shortcuts

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