store

package
v0.0.0-...-69b9976 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(path string) (*Store, error)

func (*Store) CreatePeer

func (s *Store) CreatePeer(peer *types.Peer) error

func (*Store) CreateUser

func (s *Store) CreateUser(user *types.User) error

func (*Store) GetConnectedPeers

func (s *Store) GetConnectedPeers() ([]types.Peer, error)

func (*Store) GetPeerByID

func (s *Store) GetPeerByID(id uint32) (*types.Peer, error)

func (*Store) GetPeerByKey

func (s *Store) GetPeerByKey(key string) (*types.Peer, error)

func (*Store) GetPeerIPs

func (s *Store) GetPeerIPs() ([]string, error)

func (*Store) GetPeers

func (s *Store) GetPeers() ([]types.Peer, error)

func (*Store) GetUser

func (s *Store) GetUser(username string) (*types.User, error)

func (*Store) UpdatePeer

func (s *Store) UpdatePeer(peer *types.Peer) error

func (*Store) UpdatePeerEndpoint

func (s *Store) UpdatePeerEndpoint(id uint32, endpoint string) error

func (*Store) UpdatePeerStatus

func (s *Store) UpdatePeerStatus(id uint32, connected bool) error

Jump to

Keyboard shortcuts

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