m3db

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 6 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

func NewAsyncClient

func NewAsyncClient(
	fn NewClientFn,
	done chan<- struct{},
) clusterclient.Client

NewAsyncClient returns a new AsyncClient.

Types

type AsyncClient

type AsyncClient struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

AsyncClient is a thin wrapper around a cluster client that allows for lazy initialization.

func (*AsyncClient) KV

func (c *AsyncClient) KV() (kv.Store, error)

KV returns access to the distributed configuration store. To be deprecated.

func (*AsyncClient) Services

Services returns access to the set of services.

func (*AsyncClient) Store

func (c *AsyncClient) Store(opts kv.OverrideOptions) (kv.Store, error)

Store returns access to the distributed configuration store with a namespace.

func (*AsyncClient) Txn

func (c *AsyncClient) Txn() (kv.TxnStore, error)

Txn returns access to the transaction store. To be deprecated.

func (*AsyncClient) TxnStore

func (c *AsyncClient) TxnStore(opts kv.OverrideOptions) (kv.TxnStore, error)

TxnStore returns access to the transaction store with a namespace.

type NewClientFn

type NewClientFn func() (clusterclient.Client, error)

NewClientFn creates a cluster client.

Jump to

Keyboard shortcuts

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