Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the wallet's business logic layer
func (*Client) RunAllAutoScenarios ¶
RunAllAutoScenarios runs all scenarios marked as auto_run
func (*Client) RunScenario ¶
RunScenario executes a single scenario by name
func (*Client) Store ¶
func (c *Client) Store() *credential.Store
Store returns the credential store
type ResultStore ¶
type ResultStore struct {
// contains filtered or unexported fields
}
ResultStore keeps a history of scenario execution results
func (*ResultStore) Add ¶
func (r *ResultStore) Add(result *ScenarioResult)
Add appends a scenario result
func (*ResultStore) LastByName ¶
func (r *ResultStore) LastByName(name string) *ScenarioResult
LastByName returns the most recent result for a given scenario name
type ScenarioResult ¶
type ScenarioResult struct {
ScenarioName string `json:"scenario_name"`
Type string `json:"type"`
StartedAt time.Time `json:"started_at"`
CompletedAt time.Time `json:"completed_at"`
Success bool `json:"success"`
Error string `json:"error,omitempty"`
Steps []StepResult `json:"steps"`
}
ScenarioResult holds the outcome of a scenario execution
Click to show internal directories.
Click to hide internal directories.