package
0.3.0
Repository: https://github.com/testground/sdk-go.git
Documentation: pkg.go.dev

# Functions

GetRunParams extracts the RunParams from a context, previously set by calling WithRunParams.
MustBoundClient creates a new bound client by calling NewBoundClient, and panicking if it errors.
MustGenericClient creates a new generic client by calling NewGenericClient, and panicking if it errors.
NewBoundClient returns a new sync DefaultClient that is bound to the provided RunEnv.
NewGenericClient returns a new sync DefaultClient that is bound to no RunEnv.
NewInmemClient creates an in-memory sync client for testing.
NewTopic constructs a Topic with the provided name, and the type of the supplied value, derived via reflect.TypeOf, unless the supplied value is already a reflect.Type.
WithRunParams returns a context that embeds the supplied RunParams, such that it can be passed to a GenericClient.

# Constants

No description provided by the author
No description provided by the author

# Variables

ErrNoRunParameters is returned by the generic client when an unbound context is passed in.

# Structs

Barrier represents a barrier over a State.
No description provided by the author
Subscription represents a receive channel for data being published in a Topic.
Topic represents a meeting place for test instances to exchange arbitrary data.

# Interfaces

No description provided by the author

# Type aliases

State represents a state in a distributed state machine, identified by a unique string within the test case.