mocktopology

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TopologyController

type TopologyController struct {
	mock.Mock
}

TopologyController is an autogenerated mock type for the TopologyController type

func NewTopologyController

func NewTopologyController(t interface {
	mock.TestingT
	Cleanup(func())
}) *TopologyController

NewTopologyController creates a new instance of TopologyController. 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 (*TopologyController) AddInstance

func (_m *TopologyController) AddInstance(ctx context.Context, rsID uuid.UUID, info vshard_router.InstanceInfo) error

AddInstance provides a mock function with given fields: ctx, rsID, info

func (*TopologyController) AddReplicaset

func (_m *TopologyController) AddReplicaset(ctx context.Context, rsInfo vshard_router.ReplicasetInfo, instances []vshard_router.InstanceInfo) error

AddReplicaset provides a mock function with given fields: ctx, rsInfo, instances

func (*TopologyController) AddReplicasets

AddReplicasets provides a mock function with given fields: ctx, replicasets

func (*TopologyController) RemoveInstance

func (_m *TopologyController) RemoveInstance(ctx context.Context, rsID uuid.UUID, instanceID uuid.UUID) error

RemoveInstance provides a mock function with given fields: ctx, rsID, instanceID

func (*TopologyController) RemoveReplicaset

func (_m *TopologyController) RemoveReplicaset(ctx context.Context, rsID uuid.UUID) []error

RemoveReplicaset provides a mock function with given fields: ctx, rsID

Jump to

Keyboard shortcuts

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