package
0.0.0-20170228125039-54ca42f60911
Repository: https://github.com/bwplotka/cortex.git
Documentation: pkg.go.dev
# Functions
New creates a new Ring.
NewConsulClient returns a new ConsulClient.
PrefixClient takes a ConsulClient and forces a prefix on all its operations.
ProtoDescFactory makes new Descs.
RegisterIngester registers an ingester with Consul.
# Variables
ErrEmptyRing is the error returned when trying to get an element when nothing has been added to hash.
ErrNotFound is returned by ConsulClient.Get.
# Structs
Config for a Ring.
ConsulConfig to create a ConsulClient.
IngesterRegistration manages the connection between the ingester and Consul.
IngesterRegistrationConfig is the config for an IngesterRegistration.
ProtoCodec is a Codec for proto/snappy.
Ring holds the information about the members of the consistent hash circle.
# Interfaces
Codec allows the consult client to serialise and deserialise values.
ConsulClient is a high-level client for Consul, that exposes operations such as CAS and Watch which take callbacks.
# Type aliases
ByToken is a sortable list of TokenDescs.
CASCallback is the type of the callback to CAS.
Operation can be Read or Write.