Documentation ¶
Index ¶
- type AddressesMap
- func (m *AddressesMap) Delete(k string)
- func (m *AddressesMap) Get(k string) (*addressState, bool)
- func (m *AddressesMap) GetOrPut(k string, v *addressState) (*addressState, bool)
- func (m *AddressesMap) ListKeys() []string
- func (m *AddressesMap) ListValues() []*addressState
- func (m *AddressesMap) Put(k string, v *addressState)
- func (m *AddressesMap) Range(i func(k string, v *addressState) bool)
- type ConnectionHandler
- type ConnectionsMap
- func (m *ConnectionsMap) Delete(k crypto.PublicKey)
- func (m *ConnectionsMap) Get(k crypto.PublicKey) (*peerbox, bool)
- func (m *ConnectionsMap) GetOrPut(k crypto.PublicKey, v *peerbox) (*peerbox, bool)
- func (m *ConnectionsMap) ListKeys() []crypto.PublicKey
- func (m *ConnectionsMap) ListValues() []*peerbox
- func (m *ConnectionsMap) Put(k crypto.PublicKey, v *peerbox)
- func (m *ConnectionsMap) Range(i func(k crypto.PublicKey, v *peerbox) bool)
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressesMap ¶
type AddressesMap struct {
// contains filtered or unexported fields
}
AddressesMap -
func NewAddressesMap ¶
func NewAddressesMap() *AddressesMap
NewAddressesMap constructs a new SyncMap
func (*AddressesMap) GetOrPut ¶
func (m *AddressesMap) GetOrPut(k string, v *addressState) (*addressState, bool)
GetOrPut -
func (*AddressesMap) Range ¶
func (m *AddressesMap) Range(i func(k string, v *addressState) bool)
Range -
type ConnectionHandler ¶
type ConnectionHandler func(*net.Connection) error
type ConnectionsMap ¶
type ConnectionsMap struct {
// contains filtered or unexported fields
}
ConnectionsMap -
func NewConnectionsMap ¶
func NewConnectionsMap() *ConnectionsMap
NewConnectionsMap constructs a new SyncMap
func (*ConnectionsMap) Get ¶
func (m *ConnectionsMap) Get(k crypto.PublicKey) (*peerbox, bool)
Get -
Click to show internal directories.
Click to hide internal directories.