Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypeOfPeerID ¶
TypeOfPeerID matches that given argument has the peer.ID type.
func WaitWithTimeout ¶
WaitWithTimeout is a testing helper function that will block until the wait group counter is zero. If the timeout ticks before that, it will mark the test as failed and stop the testing process.
Types ¶
type PeerIDMatcher ¶
type PeerIDMatcher struct {
// contains filtered or unexported fields
}
PeerIDMatcher matches given peer.ID to a string
func NewPeerIDMatcher ¶
func NewPeerIDMatcher(val string) *PeerIDMatcher
func (*PeerIDMatcher) Matches ¶
func (m *PeerIDMatcher) Matches(x interface{}) bool
func (*PeerIDMatcher) String ¶
func (m *PeerIDMatcher) String() string
type PeerIDSliceMatcher ¶
type PeerIDSliceMatcher struct {
// contains filtered or unexported fields
}
func NewPeerIDSliceMatcher ¶
func NewPeerIDSliceMatcher(val ...string) *PeerIDSliceMatcher
NewPeerIDSliceMatcher matches given slice of peer.ID to a slice of strings
func (*PeerIDSliceMatcher) Matches ¶
func (m *PeerIDSliceMatcher) Matches(x interface{}) bool
func (*PeerIDSliceMatcher) String ¶
func (m *PeerIDSliceMatcher) String() string
Click to show internal directories.
Click to hide internal directories.