privatemessagingmocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager added in v1.1.2

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Manager) EnsureLocalGroup

func (_m *Manager) EnsureLocalGroup(ctx context.Context, group *core.Group, creator *core.Member) (bool, error)

EnsureLocalGroup provides a mock function with given fields: ctx, group, creator

func (*Manager) GetGroupByID

func (_m *Manager) GetGroupByID(ctx context.Context, id string) (*core.Group, error)

GetGroupByID provides a mock function with given fields: ctx, id

func (*Manager) GetGroups

func (_m *Manager) GetGroups(ctx context.Context, filter ffapi.AndFilter) ([]*core.Group, *ffapi.FilterResult, error)

GetGroups provides a mock function with given fields: ctx, filter

func (*Manager) Name added in v0.14.0

func (_m *Manager) Name() string

Name provides a mock function with given fields:

func (*Manager) NewMessage added in v0.11.0

func (_m *Manager) NewMessage(msg *core.MessageInOut) syncasync.Sender

NewMessage provides a mock function with given fields: msg

func (*Manager) PrepareOperation added in v0.14.0

func (_m *Manager) PrepareOperation(ctx context.Context, op *core.Operation) (*core.PreparedOperation, error)

PrepareOperation provides a mock function with given fields: ctx, op

func (*Manager) RequestReply

func (_m *Manager) RequestReply(ctx context.Context, request *core.MessageInOut) (*core.MessageInOut, error)

RequestReply provides a mock function with given fields: ctx, request

func (*Manager) ResolveInitGroup

func (_m *Manager) ResolveInitGroup(ctx context.Context, msg *core.Message, creator *core.Member) (*core.Group, error)

ResolveInitGroup provides a mock function with given fields: ctx, msg, creator

func (*Manager) RunOperation added in v0.14.0

RunOperation provides a mock function with given fields: ctx, op

func (*Manager) SendMessage

func (_m *Manager) SendMessage(ctx context.Context, in *core.MessageInOut, waitConfirm bool) (*core.Message, error)

SendMessage provides a mock function with given fields: ctx, in, waitConfirm

Jump to

Keyboard shortcuts

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