blockwriter

package module
v0.0.0-...-dfd9850 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCreator

type ClientCreator struct {
	TableNum    int
	Concurrency int
}

ClientCreator creates BlockWriteClient

func (ClientCreator) Create

func (c ClientCreator) Create(node cluster.ClientNode) core.Client

Create creates WriterClient

type WriterClient

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

WriterClient is for concurrent writing blocks.

func (*WriterClient) SetUp

func (c *WriterClient) SetUp(ctx context.Context, _ []cluster.Node, clientNodes []cluster.ClientNode, idx int) error

SetUp sets up client

func (*WriterClient) Start

func (c *WriterClient) Start(ctx context.Context, cfg interface{}, clientNodes []cluster.ClientNode) error

Start starts test

func (*WriterClient) String

func (c *WriterClient) String() string

String implements fmt.Stringer interface.

func (*WriterClient) TearDown

func (c *WriterClient) TearDown(ctx context.Context, nodes []cluster.ClientNode, idx int) error

TearDown tears down client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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