cmd

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package cmd implements the command-line interface for the dKV distributed key-value store. It provides a hierarchical command structure with operations for running the server and interacting with it as a client.

The package is organized into several subpackages:

  • kv: Commands for key-value store operations (get, set, delete, etc.)
  • lock: Commands for locking operations (acquire, release)
  • serve: Commands for starting and configuring the dKV server
  • util: Shared utilities for command-line processing and configuration (internal use)

See dkv -help for a list of all commands.

Index

Constants

View Source
const (
	Version = "1.0.10"
)

Variables

View Source
var (

	// RootCmd represents the base command when called without any subcommands
	RootCmd = &cobra.Command{
		Use:   "dkv",
		Short: "distributed key-value store",
		Long: fmt.Sprintf(`dKV (v%s)

A distributed, consistent key-value store library written in Go,
leveraging RAFT consensus for linearizability and fault tolerance.`, Version),
	}
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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