creator

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*config.Config
	ConfigPath string
	Mode       string
}

Config struct

type PocketClient

type PocketClient struct {
	Config
}

PocketClient runs pocket

func (PocketClient) DumpState

func (PocketClient) DumpState(ctx context.Context) (interface{}, error)

DumpState the database state(also the model's state)

func (PocketClient) Invoke

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

Invoke invokes a request to the database.

func (PocketClient) NextRequest

func (PocketClient) NextRequest() interface{}

NextRequest generates a request for latter Invoke.

func (PocketClient) SetUp

func (PocketClient) SetUp(ctx context.Context, _ []cluster.Node, _ []cluster.ClientNode, idx int) error

SetUp sets up the client.

func (PocketClient) Start

func (p PocketClient) Start(ctx context.Context, _ interface{}, clientNodes []cluster.ClientNode) error

Start runs self scheduled cases

func (PocketClient) TearDown

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

TearDown tears down the client.

type PocketCreator

type PocketCreator struct {
	Config
}

PocketCreator create pocket instances

func (PocketCreator) Create

func (p PocketCreator) Create(node cluster.ClientNode) core.Client

Create client

Jump to

Keyboard shortcuts

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