peers

package
v0.48.0-dev2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package peers is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	GetPeer(ctx context.Context, accountID, userID, peerID string) (*peer.Peer, error)
	GetPeerAccountID(ctx context.Context, peerID string) (string, error)
	GetAllPeers(ctx context.Context, accountID, userID string) ([]*peer.Peer, error)
}

func NewManager

func NewManager(store store.Store, permissionsManager permissions.Manager) Manager

type MockManager added in v0.39.0

type MockManager struct {
	// contains filtered or unexported fields
}

MockManager is a mock of Manager interface.

func NewMockManager added in v0.39.0

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) EXPECT added in v0.39.0

func (m *MockManager) EXPECT() *MockManagerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockManager) GetAllPeers added in v0.39.0

func (m *MockManager) GetAllPeers(ctx context.Context, accountID, userID string) ([]*peer.Peer, error)

GetAllPeers mocks base method.

func (*MockManager) GetPeer added in v0.39.0

func (m *MockManager) GetPeer(ctx context.Context, accountID, userID, peerID string) (*peer.Peer, error)

GetPeer mocks base method.

func (*MockManager) GetPeerAccountID added in v0.39.0

func (m *MockManager) GetPeerAccountID(ctx context.Context, peerID string) (string, error)

GetPeerAccountID mocks base method.

type MockManagerMockRecorder added in v0.39.0

type MockManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) GetAllPeers added in v0.39.0

func (mr *MockManagerMockRecorder) GetAllPeers(ctx, accountID, userID interface{}) *gomock.Call

GetAllPeers indicates an expected call of GetAllPeers.

func (*MockManagerMockRecorder) GetPeer added in v0.39.0

func (mr *MockManagerMockRecorder) GetPeer(ctx, accountID, userID, peerID interface{}) *gomock.Call

GetPeer indicates an expected call of GetPeer.

func (*MockManagerMockRecorder) GetPeerAccountID added in v0.39.0

func (mr *MockManagerMockRecorder) GetPeerAccountID(ctx, peerID interface{}) *gomock.Call

GetPeerAccountID indicates an expected call of GetPeerAccountID.

Jump to

Keyboard shortcuts

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