inmemorysessionstorage

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemoryPeerStorage

func NewMemoryPeerStorage() peerstorage.PeerStorage

Types

type MemoryPeerStorage

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

func (*MemoryPeerStorage) Add

func (s *MemoryPeerStorage) Add(newPeer domain.Peer) error

func (*MemoryPeerStorage) GetAll

func (s *MemoryPeerStorage) GetAll() ([]domain.Peer, error)

func (*MemoryPeerStorage) GetByID

func (s *MemoryPeerStorage) GetByID(id []byte) (domain.Peer, error)

func (*MemoryPeerStorage) RemoveByID

func (s *MemoryPeerStorage) RemoveByID(id []byte) error

func (*MemoryPeerStorage) RemoveByName

func (s *MemoryPeerStorage) RemoveByName(name string) error

Jump to

Keyboard shortcuts

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