blockwriter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 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) DumpState

func (c *WriterClient) DumpState(ctx context.Context) (interface{}, error)

DumpState does nothing

func (*WriterClient) Invoke

func (c *WriterClient) Invoke(ctx context.Context, node cluster.ClientNode, r interface{}) core.UnknownResponse

Invoke does nothing

func (*WriterClient) NextRequest

func (c *WriterClient) NextRequest() interface{}

NextRequest does nothing

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

Jump to

Keyboard shortcuts

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