package
0.3.0
Repository: https://github.com/matrixorigin/matrixcube.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddEtcdMember add a member to etcd.
CheckClusterID checks etcd cluster ID, returns an error if mismatch.
DecodeGroupKey decode group key, returns group id.
DefaultTimeoutWheel returns default timeout wheel.
EmptyPeer returns a peer is a empty peer.
EncodeGroupKey encode group key.
FindPeer find peer at the spec container.
GeometricMean gets the geometric mean for a slice of numbers.
GetCurrentClusterMembers returns etcd current members.
GetEtcdResp returns etcd resp.
GetEtcdValue returns value from etcd storage.
HarmonicMean gets the harmonic mean for a slice of numbers.
IsNotLeaderError is not leader error.
LeaderTxn returns leader txn.
ListEtcdMembers returns etcd members.
Max finds the highest number in a slice.
MaxUint64 max uint64.
Mean gets the average of a slice of numbers.
Median gets the median number in a slice of numbers.
Min finds the lowest number in a set of data.
MinBalanceDiff returns the minimal diff to do balance.
MinDuration min duration.
MinUint64 min uint64.
Mode gets the mode of a slice of numbers.
MustMarshalBM64 must marshal BM.
MustMarshalBM64To must marshal BM.
MustUnmarshalBM64 parse a bitmap.
MustUnmarshalBM64To parse a bitmap.
NewIDTTL creates a new TTLUint64 cache.
NewStringTTL creates a new TTLString cache.
ParseUrls parse url.
PopulationVariance finds the amount of variance within a population.
PutEtcdWithTTL put (key, value) into etcd with a ttl of ttlSeconds.
StandardDeviation the amount of variation in the dataset.
StandardDeviationPopulation finds the amount of variation from the population.
Sum adds all the numbers of a slice together.
Txn returns etcd txn.

# Constants

UseSliceCount encode bitmap as Slice.

# Variables

ErrNotBootstrapped not bootstrapped.
ErrNotLeader error not leader.
ErrReq invalid request.
ErrSchedulerExisted error with scheduler is existed.
ErrSchedulerNotFound error with scheduler is not found.
ErrStaleResource stale resource.
ErrTombstoneContainer t ombstone container.
GetPrefixRangeEnd get prefix range end.

# Structs

TTLString is simple TTL saves key string and value.
TTLUint64 is simple TTL saves only uint64s.

# Type aliases

Float64Data is a named type for []float64 with helper methods.