mocks

package
v0.31.8 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPool

type MockPool[T peer.ServiceClient] struct {
	mock.Mock
	// contains filtered or unexported fields
}

func (*MockPool[T]) IsPeer

func (p *MockPool[T]) IsPeer(address string) bool

func (*MockPool[T]) Iterate

func (p *MockPool[T]) Iterate(ctx context.Context, handler peer.ConnectionHandlerFn[T]) error

func (*MockPool[T]) OnPeerLeave

func (p *MockPool[T]) OnPeerLeave(handler peer.PeerLeaveHandler)

func (*MockPool[T]) UseClient

func (p *MockPool[T]) UseClient(address string, client T)

Jump to

Keyboard shortcuts

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