Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = errors.New("already exists")
ErrAlreadyExists is returned if you attempt to add an endpoint to the map that already exists.
View Source
var ErrDoesNotExist = errors.New("does not exist")
ErrDoesNotExist is returned if you try to get an endpoint that does not exist
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map holds an endpoint map mapping endpoints to sequence maps
func (*Map) Add ¶
func (m *Map) Add(ip net.IP, id ping.ID, h func(*ping.Ping, error)) (sm *seqmap.Map, l int, err error)
Add returns the length of the map after modification
Click to show internal directories.
Click to hide internal directories.