fake

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 5 modules, 2 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 M3ClusterClient

type M3ClusterClient interface {
	client.Client
}

M3ClusterClient is a fake m3cluster client

func NewM3ClusterClient

func NewM3ClusterClient(
	services M3ClusterServices,
	kvStore M3ClusterKVStore,
) M3ClusterClient

NewM3ClusterClient creates a new fake m3cluster client

type M3ClusterKVStore

type M3ClusterKVStore interface {
	kv.Store
}

M3ClusterKVStore is a fake m3cluster kv store

type M3ClusterPlacementService

type M3ClusterPlacementService interface {
	placement.Service

	// InstanceShardsMarkedAvailable returns instance shards marked as available
	InstanceShardsMarkedAvailable() map[string][]uint32
}

M3ClusterPlacementService is a fake m3cluster placement service

func NewM3ClusterPlacementService

func NewM3ClusterPlacementService() M3ClusterPlacementService

NewM3ClusterPlacementService creates a fake m3cluster placement service

type M3ClusterService

type M3ClusterService interface {
	services.Service
}

M3ClusterService is a fake m3cluster service, mainly used to add synchronization and avoid data races with the default service implementation included in m3cluster

func NewM3ClusterService

func NewM3ClusterService() M3ClusterService

NewM3ClusterService creates a new fake m3cluster service

type M3ClusterServices

type M3ClusterServices interface {
	services.Services

	// RegisterService registers a fake m3cluster service
	RegisterService(name string, svc M3ClusterService)

	// NotifyServiceUpdate will trigger any watch to fire for a service
	NotifyServiceUpdate(name string)

	// FakePlacementService returns the fake m3cluster placement service
	FakePlacementService() M3ClusterPlacementService
}

M3ClusterServices is a fake m3cluster services

func NewM3ClusterServices

func NewM3ClusterServices() M3ClusterServices

NewM3ClusterServices creates a new fake m3cluster services

func NewM3ClusterServicesWithPlacementService added in v1.2.0

func NewM3ClusterServicesWithPlacementService(placementSvc M3ClusterPlacementService) M3ClusterServices

NewM3ClusterServicesWithPlacementService creates a new fake m3cluster services with given placement service.

type M3ClusterTxnStore

type M3ClusterTxnStore interface {
	kv.TxnStore
}

M3ClusterTxnStore is a fake m3cluster txn store

Jump to

Keyboard shortcuts

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