Documentation ¶
Index ¶
- type Store
- func (s *Store) CreatePeer(peer *types.Peer) error
- func (s *Store) CreateUser(user *types.User) error
- func (s *Store) GetConnectedPeers() ([]types.Peer, error)
- func (s *Store) GetPeerByID(id uint32) (*types.Peer, error)
- func (s *Store) GetPeerByKey(key string) (*types.Peer, error)
- func (s *Store) GetPeerIPs() ([]string, error)
- func (s *Store) GetPeers() ([]types.Peer, error)
- func (s *Store) GetUser(username string) (*types.User, error)
- func (s *Store) UpdatePeer(peer *types.Peer) error
- func (s *Store) UpdatePeerEndpoint(id uint32, endpoint string) error
- func (s *Store) UpdatePeerStatus(id uint32, connected bool) 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) GetPeerIPs ¶
func (*Store) UpdatePeerEndpoint ¶
Click to show internal directories.
Click to hide internal directories.