Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateServiceContextWithTimeout(parent context.Context) (context.Context, context.CancelFunc)
- func (c *Client) ListAll(parent context.Context, pageSize int) ([]Workflow, error)
- func (c *Client) SearchByName(parent context.Context, name string, pageSize int) ([]Workflow, error)
- func (c *Client) SetServiceTimeout(timeout time.Duration)
- type Workflow
Constants ¶
View Source
const DefaultPageSize = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client fetches workflow data from the CRE platform GraphQL API.
func New ¶
func New(gql *graphqlclient.Client, log *zerolog.Logger) *Client
New creates a WorkflowDataClient backed by the provided GraphQL client.
func (*Client) CreateServiceContextWithTimeout ¶ added in v1.17.0
func (*Client) SearchByName ¶ added in v1.13.0
func (c *Client) SearchByName(parent context.Context, name string, pageSize int) ([]Workflow, error)
SearchByName pages through the ListWorkflows query with the given search filter (server-side contains match on workflow name).
func (*Client) SetServiceTimeout ¶ added in v1.17.0
Click to show internal directories.
Click to hide internal directories.