Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// NewForwardtest creates a new forwardtest.
NewForwardtest(
ctx context.Context,
params api.CreateForwardtestWorkflowParams,
) (Forwardtest, error)
// ListForwardtests lists the forwardtests.
ListForwardtests(
ctx context.Context,
params api.ListForwardtestsWorkflowParams,
) ([]Forwardtest, error)
// Info calls the service info.
Info(ctx context.Context) (api.ServiceInfoResults, error)
}
Client is a client for the cryptellation forwardtests service.
func New ¶
func New(cl temporalclient.Client) Client
New creates a new client to execute temporal workflows.
type Forwardtest ¶
Forwardtest is a local representation of a forwardtest running on the Cryptellation API.
func (Forwardtest) CreateOrder ¶
func (ft Forwardtest) CreateOrder( ctx context.Context, order order.Order, ) (api.CreateForwardtestOrderWorkflowResults, error)
CreateOrder creates an order on the forwardtest.
func (Forwardtest) GetStatus ¶
func (ft Forwardtest) GetStatus( ctx context.Context, ) (forwardtest.Status, error)
GetStatus gets the status of the forwardtest.
func (Forwardtest) ListAccounts ¶
ListAccounts lists the accounts of the forwardtest.
type RawClient ¶
type RawClient interface {
CreateForwardtest(
ctx context.Context,
params api.CreateForwardtestWorkflowParams,
) (api.CreateForwardtestWorkflowResults, error)
GetForwardtestStatus(
ctx context.Context,
params api.GetForwardtestStatusWorkflowParams,
) (api.GetForwardtestStatusWorkflowResults, error)
ListForwardtests(
ctx context.Context,
params api.ListForwardtestsWorkflowParams,
) (api.ListForwardtestsWorkflowResults, error)
CreateForwardtestOrder(
ctx context.Context,
params api.CreateForwardtestOrderWorkflowParams,
) (api.CreateForwardtestOrderWorkflowResults, error)
ListForwardtestAccounts(
ctx context.Context,
params api.ListForwardtestAccountsWorkflowParams,
) (api.ListForwardtestAccountsWorkflowResults, error)
}
RawClient is a client for the cryptellation backtests service with just the calls to the temporal workflows.
func NewRaw ¶
func NewRaw(cl temporalclient.Client) RawClient
NewRaw creates a new raw client to execute temporal workflows.
type WfClient ¶
type WfClient interface {
}
WfClient is a client for the cryptellation forwardtests service from a workflow perspective.
func NewWfClient ¶
func NewWfClient() WfClient
NewWfClient creates a new workflow client. This client is used to call workflows from within other workflows. It is not used to call workflows from outside the workflow environment.