Directories ¶
Path | Synopsis |
---|---|
apps
|
|
description: Utility to perform master election/failover using etcd.
|
description: Utility to perform master election/failover using etcd. |
internal
|
|
pkg
|
|
crc
Package crc provides utility function for cyclic redundancy check algorithms.
|
Package crc provides utility function for cyclic redundancy check algorithms. |
fileutil
Package fileutil implements utility functions related to files and paths.
|
Package fileutil implements utility functions related to files and paths. |
httputil
Package httputil provides HTTP utility functions.
|
Package httputil provides HTTP utility functions. |
idutil
Package idutil implements utility functions for generating unique, randomized ids.
|
Package idutil implements utility functions for generating unique, randomized ids. |
ioutil
Package ioutil implements I/O utility functions.
|
Package ioutil implements I/O utility functions. |
logutil
Package logutil includes utilities to facilitate logging.
|
Package logutil includes utilities to facilitate logging. |
pbutil
Package pbutil defines interfaces for handling Protocol Buffer objects.
|
Package pbutil defines interfaces for handling Protocol Buffer objects. |
testutil
Package testutil provides test utility functions.
|
Package testutil provides test utility functions. |
tlsutil
Package tlsutil provides utility functions for handling TLS.
|
Package tlsutil provides utility functions for handling TLS. |
transport
Package transport implements various HTTP transport utilities based on Go net package.
|
Package transport implements various HTTP transport utilities based on Go net package. |
types
Package types declares various data types and implements type-checking functions.
|
Package types declares various data types and implements type-checking functions. |
wait
Package wait provides utility functions for polling, listening using Go channel.
|
Package wait provides utility functions for polling, listening using Go channel. |
Package raft sends and receives messages in the Protocol Buffer format defined in the raftpb package.
|
Package raft sends and receives messages in the Protocol Buffer format defined in the raftpb package. |
Usage First create a rockredis instance before use: db := rockredis.Open(cfg) cfg is a Config instance which contains configuration for rockredis use After you create a rockredis instance, you can store you data: KV KV is the most basic type like any other key-value database.
|
Usage First create a rockredis instance before use: db := rockredis.Open(cfg) cfg is a Config instance which contains configuration for rockredis use After you create a rockredis instance, you can store you data: KV KV is the most basic type like any other key-value database. |
Package snap stores raft nodes' states with snapshots.
|
Package snap stores raft nodes' states with snapshots. |
Package stats defines a standard interface for cluster statistics.
|
Package stats defines a standard interface for cluster statistics. |
tools
|
|
transport
|
|
rafthttp
Package rafthttp implements HTTP transportation layer for etcd/raft pkg.
|
Package rafthttp implements HTTP transportation layer for etcd/raft pkg. |
Package wal provides an implementation of a write ahead log that is used by etcd.
|
Package wal provides an implementation of a write ahead log that is used by etcd. |
Click to show internal directories.
Click to hide internal directories.