data

package
v0.0.0-...-724c7a8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: EUPL-1.2 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	base.Base

	Peers []cluster.Peer `short:"p" long:"peer" description:"The address of a peer node in the cluster to join" required:"yes"`
}

type Benchmark

type Benchmark struct {
	Base
	Key         string `short:"k" long:"key" description:"The key to use for the benckmark" optional:"yes" default:"_benchmark"`
	Iterations  int    `` /* 129-byte string literal not displayed */
	Concurrency int    `short:"c" long:"concurrency" description:"The number of goroutines to run in parallel" optional:"yes" default:"10"`
	Length      int    `short:"l" long:"length" description:"The length of the random values to set in the benchmark" optional:"yes" default:"16"`
	Verbose     bool   `short:"v" long:"verbose" description:"Whether to produce verbose output" optional:"yes"`
}

func (*Benchmark) Execute

func (cmd *Benchmark) Execute(args []string) error

type Data

type Data struct {
	Set Set `command:"set" alias:"s" description:"Set a value in the distributed log."`

	Get Get `command:"get" alias:"g" description:"Get a value from a distributed log."`

	Benchmark Benchmark `command:"benchmark" alias:"b" description:"Benchmark the speed of the distributed log."`
}

Log is the set of distributed log related commands.

type Get

type Get struct {
	Base
	Key string `short:"k" long:"key" description:"The key to set/replace" required:"yes"`
}

func (*Get) Execute

func (cmd *Get) Execute(args []string) error

type Set

type Set struct {
	Base
	Key   string `short:"k" long:"key" description:"The key to set/replace" required:"yes"`
	Value string `short:"v" long:"value" description:"The value to set/replace" required:"yes"`
}

func (*Set) Execute

func (cmd *Set) Execute(args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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