bench

package
v0.0.0-...-3fc995f Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: BSD-2-Clause-Views Imports: 13 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMaster

func RunMaster()

func RunSlave

func RunSlave()

Types

type Nothing

type Nothing struct{}

type PrepareCommand

type PrepareCommand struct {
	Addr  string
	Range [2]int64
}

type Slave

type Slave struct {
	// contains filtered or unexported fields
}

func (*Slave) Current

func (self *Slave) Current(x Nothing, rps *int64) error

func (*Slave) Prepare

func (self *Slave) Prepare(command PrepareCommand, x *Nothing) error

func (*Slave) Spin

func (self *Slave) Spin(command SpinCommand, result *SpinResult) error

func (*Slave) Stop

func (self *Slave) Stop(x Nothing, y *Nothing) error

func (*Slave) Wait

func (self *Slave) Wait(x Nothing, y *Nothing) error

type SpinCommand

type SpinCommand struct {
	Addr   string
	MaxKey int64
}

type SpinResult

type SpinResult struct {
	Nodes int
	Keys  int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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