Documentation ¶
Index ¶
- type Store
- func (s *Store) AllocatePeerIP(prefix netip.Prefix) (string, error)
- func (s *Store) CreatePeer(peer *types.Peer) error
- func (s *Store) DeletePeer(peer *types.Peer) error
- func (s *Store) GetAllocatedIPs() ([]netip.Addr, error)
- func (s *Store) GetConnectedPeers() ([]types.Peer, error)
- func (s *Store) GetPeerByMachineID(machineID string) *types.Peer
- func (s *Store) GetPeerbyID(id uint32) *types.Peer
- func (s *Store) GetPeers() ([]types.Peer, error)
- func (s *Store) SetPeerConnected(peer *types.Peer, connected bool) error
- func (s *Store) UpdatePeer(peer *types.Peer) error
- func (s *Store) UpdatePeerEndpoint(id uint32, endpoint string) error
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 (*Store) SetPeerConnected ¶
Click to show internal directories.
Click to hide internal directories.