Documentation
¶
Index ¶
- type Store
- func (s *Store) AddPeerConn(pubKey string, conn *peer.Conn) bool
- func (s *Store) AllowedIP(pubKey string) (net.IP, bool)
- func (s *Store) AllowedIPs(pubKey string) (string, bool)
- func (s *Store) PeerConn(pubKey string) (*peer.Conn, bool)
- func (s *Store) PeersPubKey() []string
- func (s *Store) Remove(pubKey string) (*peer.Conn, bool)
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
}
Store is a thread-safe store for peer connections.
func NewConnStore ¶
func NewConnStore() *Store
func (*Store) PeersPubKey ¶
Click to show internal directories.
Click to hide internal directories.