Documentation ¶
Index ¶
- type Config
- type PocketClient
- func (PocketClient) DumpState(ctx context.Context) (interface{}, error)
- func (PocketClient) Invoke(ctx context.Context, node cluster.ClientNode, r interface{}) core.UnknownResponse
- func (PocketClient) NextRequest() interface{}
- func (PocketClient) SetUp(ctx context.Context, _ []cluster.Node, _ []cluster.ClientNode, idx int) error
- func (p PocketClient) Start(ctx context.Context, _ interface{}, clientNodes []cluster.ClientNode) error
- func (PocketClient) TearDown(ctx context.Context, nodes []cluster.ClientNode, idx int) error
- type PocketCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.