Documentation
¶
Index ¶
Constants ¶
View Source
const ( UpsertOrganizationSignal = "upsert-organization-signal" QueryOrganizationSummary = "query-organization-summary" OrganizationWorkflowIDTemplate = "organization-workflow-%s" // e.g. organization-workflow-123 MaxTicketSummaries = 500 )
Variables ¶
This section is empty.
Functions ¶
func OrganizationWorkflow ¶
func OrganizationWorkflow(ctx workflow.Context, organization Organization) error
Define the workflow
Types ¶
type Activity ¶
type Activity struct {
// contains filtered or unexported fields
}
func (*Activity) FetchOrganization ¶
func (a *Activity) FetchOrganization(ctx context.Context, input FetchOrganizationInput) (*FetchOrganizationOutput, error)
func (*Activity) GenOrgSummary ¶
func (a *Activity) GenOrgSummary(ctx context.Context, input GenSummaryInput) (*GenSummaryOutput, error)
type FetchOrganizationInput ¶
type FetchOrganizationInput struct {
ID int64
}
type FetchOrganizationOutput ¶
type FetchOrganizationOutput struct {
Organization Organization
}
type GenSummaryInput ¶
type GenSummaryInput struct {
Organization Organization
}
type GenSummaryOutput ¶
type GenSummaryOutput struct {
Summary string
}
type Organization ¶
type QueryOrganizationOutput ¶
type QueryOrganizationOutput struct {
Summary string `json:"summary"`
}
type UpsertOrganizationInput ¶
Click to show internal directories.
Click to hide internal directories.