Documentation ¶
Index ¶
- Constants
- func ClearAllPartition(path string)
- func ClearPartition(path string, id entity.PartitionID)
- func CreatePartitionPaths(dataPath string, space *entity.Space, id entity.PartitionID) (data, raft, meta string, err error)
- func GetAllPartitions(datas []string) []entity.PartitionID
- func GetPartitionPaths(path string, id entity.PartitionID) (data, raft, meta string)
- func InitMeta(client *client.Client, cluster, dataPath string) entity.NodeID
- func LoadPartitionMeta(dataPath string, id entity.PartitionID) (*entity.Space, error)
- func SavePartitionMeta(dataPath string, id entity.PartitionID, space *entity.Space) error
Constants ¶
View Source
const MetaFile = "server_meta.txt"
Variables ¶
This section is empty.
Functions ¶
func ClearAllPartition ¶
func ClearAllPartition(path string)
func ClearPartition ¶
func ClearPartition(path string, id entity.PartitionID)
func CreatePartitionPaths ¶
func GetAllPartitions ¶
func GetAllPartitions(datas []string) []entity.PartitionID
func GetPartitionPaths ¶
func GetPartitionPaths(path string, id entity.PartitionID) (data, raft, meta string)
func LoadPartitionMeta ¶
func SavePartitionMeta ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.