mock

package
v1.7.13-patch2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: GPL-3.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type P2PSignerStub added in v1.6.0

type P2PSignerStub struct {
	SignCalled                func(payload []byte) ([]byte, error)
	VerifyCalled              func(payload []byte, pid core.PeerID, signature []byte) error
	SignUsingPrivateKeyCalled func(skBytes []byte, payload []byte) ([]byte, error)
}

P2PSignerStub -

func (*P2PSignerStub) IsInterfaceNil added in v1.6.0

func (stub *P2PSignerStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*P2PSignerStub) Sign added in v1.6.0

func (stub *P2PSignerStub) Sign(payload []byte) ([]byte, error)

Sign -

func (*P2PSignerStub) SignUsingPrivateKey added in v1.6.0

func (stub *P2PSignerStub) SignUsingPrivateKey(skBytes []byte, payload []byte) ([]byte, error)

SignUsingPrivateKey -

func (*P2PSignerStub) Verify added in v1.6.0

func (stub *P2PSignerStub) Verify(payload []byte, pid core.PeerID, signature []byte) error

Verify -

type PeerTopicNotifierStub

type PeerTopicNotifierStub struct {
	NewPeerFoundCalled func(pid core.PeerID, topic string)
}

PeerTopicNotifierStub -

func (*PeerTopicNotifierStub) IsInterfaceNil

func (stub *PeerTopicNotifierStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*PeerTopicNotifierStub) NewPeerFound

func (stub *PeerTopicNotifierStub) NewPeerFound(pid core.PeerID, topic string)

NewPeerFound -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL