Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultTimeout = time.Second * 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) Pop ¶
Pop tries to find the given ping ID and public key in the set of pings. If it is found, it is removed from the set and returned. If it is not found, an error is returned. Expiry can also be the reason that the given ping ID is not found, but this will not be reported as a separate error.
Click to show internal directories.
Click to hide internal directories.