svcimpls

package
v0.0.1-78 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

README

This package contains many of the internal implementations for the mock.

Some of the stuff in this package is made public in spite of not being used specifically to enable testing from the mockimpl package to avoid circular dependancies. For instance the configgen stuff needs a cluster from mockimpl to test with, but mockimpl depends on the configgen itself.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenBucketConfig

func GenBucketConfig(b mock.Bucket, reqNode mock.ClusterNode) []byte

GenBucketConfig returns the current config for a bucket.

func GenClusterConfig

func GenClusterConfig(c mock.Cluster, reqNode mock.ClusterNode) []byte

GenClusterConfig returns the current config for this cluster.

func GenClusterNodeConfig

func GenClusterNodeConfig(n mock.ClusterNode, reqNode mock.ClusterNode, forBucket mock.Bucket) []byte

GenClusterNodeConfig returns the config data for a cluster node.

func GenExtClusterNodeConfig

func GenExtClusterNodeConfig(n mock.ClusterNode, reqNode mock.ClusterNode, forBucket mock.Bucket) []byte

GenExtClusterNodeConfig returns the extended config data for a cluster node.

func GenPoolsConfig

func GenPoolsConfig(c mock.Cluster) []byte

GenPoolsConfig returns the current config for the default pool.

func GenTerseBucketConfig

func GenTerseBucketConfig(b mock.Bucket, reqNode mock.ClusterNode) []byte

GenTerseBucketConfig returns the current mini config for a bucket.

func GenTerseClusterConfig

func GenTerseClusterConfig(c mock.Cluster, reqNode mock.ClusterNode) []byte

GenTerseClusterConfig returns the current mini config for this cluster.

func GenTerseClusterNodeConfig

func GenTerseClusterNodeConfig(n mock.ClusterNode, reqNode mock.ClusterNode, forBucket mock.Bucket) []byte

GenTerseClusterNodeConfig returns the terse config data for a cluster node.

func Register

func Register(opts RegisterOptions)

Register registers all known hooks.

Types

type RegisterOptions

type RegisterOptions struct {
	AnalyticsHooks mock.AnalyticsHookManager
	KvInHooks      mock.KvHookManager
	KvOutHooks     mock.KvHookManager
	MgmtHooks      mock.MgmtHookManager
	QueryHooks     mock.QueryHookManager
	SearchHooks    mock.SearchHookManager
	ViewHooks      mock.ViewHookManager
}

RegisterOptions specifies options used for impl registration

Jump to

Keyboard shortcuts

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