util

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsParticipant

func IsParticipant(peer peer.ID, peers peer.IDSlice) bool

Types

type PeerMsg

type PeerMsg struct {
	ID        peer.ID
	SessionID string
}

type SortablePeerSlice

type SortablePeerSlice []PeerMsg

func SortPeersForSession

func SortPeersForSession(peers []peer.ID, sessionID string) SortablePeerSlice

func (SortablePeerSlice) GetPeerIDs

func (sps SortablePeerSlice) GetPeerIDs() peer.IDSlice

func (SortablePeerSlice) Len

func (sps SortablePeerSlice) Len() int

func (SortablePeerSlice) Less

func (sps SortablePeerSlice) Less(i, j int) bool

func (SortablePeerSlice) Swap

func (sps SortablePeerSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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