clients

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2025 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// GetExchange calls the exchange get workflow.
	GetExchange(ctx context.Context, params api.GetExchangeWorkflowParams) (api.GetExchangeWorkflowResults, error)
	// ListExchanges calls the exchanges list workflow.
	ListExchanges(ctx context.Context, params api.ListExchangesWorkflowParams) (api.ListExchangesWorkflowResults, error)
	// Info calls the service info.
	Info(ctx context.Context) (api.ServiceInfoResults, error)
}

Client is a client for the cryptellation exchanges service.

func New

New creates a new client to execute temporal workflows.

type WfClient

type WfClient interface {
	// GetExchange calls the exchange get workflow.
	GetExchange(
		ctx workflow.Context,
		params api.GetExchangeWorkflowParams,
		childWorkflowOptions *workflow.ChildWorkflowOptions,
	) (result api.GetExchangeWorkflowResults, err error)
}

WfClient is a client for the cryptellation exchanges 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.

Jump to

Keyboard shortcuts

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