Documentation
¶
Index ¶
- Constants
- Variables
- type APNSOptions
- type AnalyticsService
- func (s *AnalyticsService) Daily(ctx context.Context, days int) (map[string]any, error)
- func (s *AnalyticsService) Developer(ctx context.Context, r *DateRange) (map[string]any, error)
- func (s *AnalyticsService) Engagement(ctx context.Context, r *DateRange) (map[string]any, error)
- func (s *AnalyticsService) Messaging(ctx context.Context, r *DateRange) (map[string]any, error)
- func (s *AnalyticsService) Overview(ctx context.Context, r *DateRange) (map[string]any, error)
- func (s *AnalyticsService) Summary(ctx context.Context, r *DateRange) (map[string]any, error)
- type AndroidOptions
- type Client
- type ContactField
- type ContactFieldsService
- func (s *ContactFieldsService) Create(ctx context.Context, p CreateContactFieldParams) (*ContactField, error)
- func (s *ContactFieldsService) Delete(ctx context.Context, fieldID string) error
- func (s *ContactFieldsService) List(ctx context.Context) ([]ContactField, error)
- func (s *ContactFieldsService) Update(ctx context.Context, fieldID string, p UpdateContactFieldParams) (*ContactField, error)
- type CreateContactFieldParams
- type CreateOptOutParams
- type CreateWebhookParams
- type CreateWorkflowParams
- type CreatedWebhook
- type DateRange
- type Device
- type DeviceList
- type EmailMessage
- type EmailService
- type Error
- type ErrorDetail
- type EventsService
- type InboundWhatsAppMessage
- type LaunchParams
- type ListOptOutsOptions
- type ListRunsOptions
- type ListWorkflowsOptions
- type MessagesService
- type MessagingPolicy
- type MessagingPolicyService
- type Nullable
- type OptOut
- type OptOutsService
- type Option
- type Page
- type PageOptions
- type PushConfig
- type PushConfigParams
- type PushConfigService
- type PushDevicesService
- type PushNotification
- type PushService
- type Recipients
- type RegisterDeviceParams
- type SMSMessage
- type SMSMetadata
- type SMSService
- type SendEmailParams
- type SendEventParams
- type SendPushParams
- type SendSMSParams
- type SendWhatsAppParams
- type StartRunParams
- type UpdateContactFieldParams
- type UpdateMessagingPolicyParams
- type UpdateWebhookParams
- type UpdateWorkflowParams
- type ValidationIssue
- type ValidationResult
- type WebPushOptions
- type Webhook
- type WebhookDelivery
- type WebhookEvent
- type WebhookEventInfo
- type WebhookSecret
- type WebhooksService
- func (s *WebhooksService) Create(ctx context.Context, p CreateWebhookParams) (*CreatedWebhook, error)
- func (s *WebhooksService) Delete(ctx context.Context, webhookID string) error
- func (s *WebhooksService) Deliveries(ctx context.Context, webhookID string, limit int) ([]WebhookDelivery, error)
- func (s *WebhooksService) Events(ctx context.Context) ([]WebhookEventInfo, error)
- func (s *WebhooksService) Get(ctx context.Context, webhookID string) (*Webhook, error)
- func (s *WebhooksService) List(ctx context.Context) ([]Webhook, error)
- func (s *WebhooksService) RotateSecret(ctx context.Context, webhookID string) (*WebhookSecret, error)
- func (s *WebhooksService) Test(ctx context.Context, webhookID string) (map[string]any, error)
- func (s *WebhooksService) Update(ctx context.Context, webhookID string, p UpdateWebhookParams) (*Webhook, error)
- type WhatsAppMessage
- type WhatsAppService
- func (s *WhatsAppService) Inbound(ctx context.Context, opts *PageOptions) (*Page[InboundWhatsAppMessage], error)
- func (s *WhatsAppService) List(ctx context.Context, opts *PageOptions) (*Page[WhatsAppMessage], error)
- func (s *WhatsAppService) Send(ctx context.Context, p SendWhatsAppParams) (*WhatsAppMessage, error)
- type Workflow
- type WorkflowHook
- type WorkflowHookInfo
- type WorkflowHooksService
- type WorkflowLaunch
- type WorkflowLaunchesService
- func (s *WorkflowLaunchesService) Cancel(ctx context.Context, launchID string) (*WorkflowLaunch, error)
- func (s *WorkflowLaunchesService) Create(ctx context.Context, workflowID string, p LaunchParams) (*WorkflowLaunch, error)
- func (s *WorkflowLaunchesService) Get(ctx context.Context, launchID string) (*WorkflowLaunch, error)
- func (s *WorkflowLaunchesService) List(ctx context.Context, workflowID string) ([]WorkflowLaunch, error)
- type WorkflowRun
- type WorkflowRunsService
- func (s *WorkflowRunsService) Cancel(ctx context.Context, runID string) (*WorkflowRun, error)
- func (s *WorkflowRunsService) Get(ctx context.Context, runID string) (*WorkflowRun, error)
- func (s *WorkflowRunsService) List(ctx context.Context, workflowID string, opts *ListRunsOptions) (*Page[WorkflowRun], error)
- func (s *WorkflowRunsService) Start(ctx context.Context, workflowID string, p StartRunParams) (*WorkflowRun, error)
- type WorkflowSecret
- type WorkflowSecretName
- type WorkflowSecretsService
- type WorkflowsService
- func (s *WorkflowsService) Archive(ctx context.Context, workflowID string) error
- func (s *WorkflowsService) Create(ctx context.Context, p CreateWorkflowParams) (*Workflow, error)
- func (s *WorkflowsService) Get(ctx context.Context, workflowID string) (*Workflow, error)
- func (s *WorkflowsService) List(ctx context.Context, opts *ListWorkflowsOptions) (*Page[Workflow], error)
- func (s *WorkflowsService) NodeTypes(ctx context.Context) ([]map[string]any, error)
- func (s *WorkflowsService) Pause(ctx context.Context, workflowID string) (*Workflow, error)
- func (s *WorkflowsService) PlatformEvents(ctx context.Context) ([]map[string]any, error)
- func (s *WorkflowsService) Publish(ctx context.Context, workflowID string) (*Workflow, error)
- func (s *WorkflowsService) Resume(ctx context.Context, workflowID string) (*Workflow, error)
- func (s *WorkflowsService) Update(ctx context.Context, workflowID string, p UpdateWorkflowParams) (*Workflow, error)
- func (s *WorkflowsService) Validate(ctx context.Context, workflowID string) (*ValidationResult, error)
- func (s *WorkflowsService) Versions(ctx context.Context, workflowID string) ([]map[string]any, error)
Constants ¶
View Source
const (
Version = "1.0.0"
)
Variables ¶
View Source
var ErrWebhookVerification = errors.New("msgine: webhook verification failed")
Functions ¶
This section is empty.
Types ¶
type APNSOptions ¶
type APNSOptions struct {
Badge *int `json:"badge,omitempty"`
Sound string `json:"sound,omitempty"`
ContentAvailable bool `json:"contentAvailable,omitempty"`
MutableContent bool `json:"mutableContent,omitempty"`
Category string `json:"category,omitempty"`
ThreadID string `json:"threadId,omitempty"`
}
type AnalyticsService ¶
type AnalyticsService struct {
// contains filtered or unexported fields
}
func (*AnalyticsService) Engagement ¶
type AndroidOptions ¶
type Client ¶
type Client struct {
SMS *SMSService
WhatsApp *WhatsAppService
Email *EmailService
Push *PushService
Messages *MessagesService
Webhooks *WebhooksService
Workflows *WorkflowsService
Events *EventsService
OptOuts *OptOutsService
ContactFields *ContactFieldsService
Analytics *AnalyticsService
// contains filtered or unexported fields
}
type ContactField ¶
type ContactFieldsService ¶
type ContactFieldsService struct {
// contains filtered or unexported fields
}
func (*ContactFieldsService) Create ¶
func (s *ContactFieldsService) Create(ctx context.Context, p CreateContactFieldParams) (*ContactField, error)
func (*ContactFieldsService) Delete ¶
func (s *ContactFieldsService) Delete(ctx context.Context, fieldID string) error
func (*ContactFieldsService) List ¶
func (s *ContactFieldsService) List(ctx context.Context) ([]ContactField, error)
func (*ContactFieldsService) Update ¶
func (s *ContactFieldsService) Update(ctx context.Context, fieldID string, p UpdateContactFieldParams) (*ContactField, error)
type CreateOptOutParams ¶
type CreateWebhookParams ¶
type CreateWorkflowParams ¶
type CreatedWebhook ¶
type DeviceList ¶
type EmailMessage ¶
type EmailMessage struct {
ID string `json:"id"`
Channel string `json:"channel"`
From string `json:"from"`
To []string `json:"to"`
Subject string `json:"subject"`
Status string `json:"status"`
Cost float64 `json:"cost"`
Currency string `json:"currency"`
RecipientCount int `json:"recipientCount"`
Sandbox bool `json:"sandbox,omitempty"`
Domain string `json:"domain,omitempty"`
ProviderMessageID *string `json:"providerMessageId,omitempty"`
FailureReason *string `json:"failureReason,omitempty"`
ScheduledAt string `json:"scheduledAt,omitempty"`
SentAt string `json:"sentAt,omitempty"`
CreatedAt string `json:"createdAt"`
}
type EmailService ¶
type EmailService struct {
// contains filtered or unexported fields
}
func (*EmailService) List ¶
func (s *EmailService) List(ctx context.Context, opts *PageOptions) (*Page[EmailMessage], error)
func (*EmailService) Send ¶
func (s *EmailService) Send(ctx context.Context, p SendEmailParams) (*EmailMessage, error)
type Error ¶
type ErrorDetail ¶
type EventsService ¶
type EventsService struct {
// contains filtered or unexported fields
}
func (*EventsService) Send ¶
func (s *EventsService) Send(ctx context.Context, p SendEventParams) (map[string]any, error)
type InboundWhatsAppMessage ¶
type LaunchParams ¶
type ListOptOutsOptions ¶
type ListRunsOptions ¶
type ListWorkflowsOptions ¶
type MessagesService ¶
type MessagesService struct {
// contains filtered or unexported fields
}
type MessagingPolicy ¶
type MessagingPolicyService ¶
type MessagingPolicyService struct {
// contains filtered or unexported fields
}
func (*MessagingPolicyService) Get ¶
func (s *MessagingPolicyService) Get(ctx context.Context) (*MessagingPolicy, error)
func (*MessagingPolicyService) Update ¶
func (s *MessagingPolicyService) Update(ctx context.Context, p UpdateMessagingPolicyParams) (*MessagingPolicy, error)
type OptOutsService ¶
type OptOutsService struct {
// contains filtered or unexported fields
}
func (*OptOutsService) Create ¶
func (s *OptOutsService) Create(ctx context.Context, p CreateOptOutParams) (*OptOut, error)
func (*OptOutsService) Delete ¶
func (s *OptOutsService) Delete(ctx context.Context, optOutID string) error
func (*OptOutsService) List ¶
func (s *OptOutsService) List(ctx context.Context, opts *ListOptOutsOptions) (*Page[OptOut], error)
type Option ¶
type Option func(*Client)
func WithBaseURL ¶
func WithHTTPClient ¶
func WithMaxRetries ¶
func WithSigningSecret ¶
func WithTimeout ¶
type PageOptions ¶
type PushConfig ¶
type PushConfigParams ¶
type PushConfigService ¶
type PushConfigService struct {
// contains filtered or unexported fields
}
func (*PushConfigService) Get ¶
func (s *PushConfigService) Get(ctx context.Context) (*PushConfig, error)
func (*PushConfigService) Set ¶
func (s *PushConfigService) Set(ctx context.Context, p PushConfigParams) (*PushConfig, error)
type PushDevicesService ¶
type PushDevicesService struct {
// contains filtered or unexported fields
}
func (*PushDevicesService) List ¶
func (s *PushDevicesService) List(ctx context.Context) (*DeviceList, error)
func (*PushDevicesService) Register ¶
func (s *PushDevicesService) Register(ctx context.Context, p RegisterDeviceParams) (*Device, error)
type PushNotification ¶
type PushNotification struct {
ID string `json:"id"`
Channel string `json:"channel"`
Title string `json:"title"`
Body string `json:"body"`
Status string `json:"status"`
RecipientCount int `json:"recipientCount"`
Sandbox bool `json:"sandbox,omitempty"`
Data map[string]string `json:"data,omitempty"`
ScheduledAt string `json:"scheduledAt,omitempty"`
CreatedAt string `json:"createdAt"`
}
type PushService ¶
type PushService struct {
Devices *PushDevicesService
Config *PushConfigService
// contains filtered or unexported fields
}
func (*PushService) Confirm ¶
func (s *PushService) Confirm(ctx context.Context, notificationID, event string) error
func (*PushService) List ¶
func (s *PushService) List(ctx context.Context, opts *PageOptions) (*Page[PushNotification], error)
func (*PushService) Send ¶
func (s *PushService) Send(ctx context.Context, p SendPushParams) (*PushNotification, error)
type Recipients ¶
type Recipients []string
func (Recipients) MarshalJSON ¶
func (r Recipients) MarshalJSON() ([]byte, error)
type RegisterDeviceParams ¶
type SMSMessage ¶
type SMSMessage struct {
ID string `json:"id"`
SID string `json:"sid,omitempty"`
Channel string `json:"channel"`
To []string `json:"to"`
From string `json:"from"`
Content string `json:"content"`
Status string `json:"status"`
Cost float64 `json:"cost"`
Currency string `json:"currency"`
Sandbox bool `json:"sandbox,omitempty"`
ScheduledAt string `json:"scheduledAt,omitempty"`
SentAt string `json:"sentAt,omitempty"`
DeliveredAt string `json:"deliveredAt,omitempty"`
CreatedAt string `json:"createdAt"`
Metadata *SMSMetadata `json:"metadata,omitempty"`
}
type SMSMetadata ¶
type SMSMetadata struct {
RecipientsProcessed int `json:"recipientsProcessed"`
InvalidNumbersSkipped int `json:"invalidNumbersSkipped"`
DuplicatesRemoved int `json:"duplicatesRemoved"`
SMSCount int `json:"smsCount"`
MessageLength int `json:"messageLength"`
CostPerSMS float64 `json:"costPerSms"`
InvalidNumbers []string `json:"invalidNumbers,omitempty"`
OptedOutSkipped []string `json:"optedOutSkipped,omitempty"`
}
type SMSService ¶
type SMSService struct {
// contains filtered or unexported fields
}
func (*SMSService) List ¶
func (s *SMSService) List(ctx context.Context, opts *PageOptions) (*Page[SMSMessage], error)
func (*SMSService) Send ¶
func (s *SMSService) Send(ctx context.Context, p SendSMSParams) (*SMSMessage, error)
type SendEmailParams ¶
type SendEmailParams struct {
From string `json:"from"`
To Recipients `json:"to"`
Subject string `json:"subject"`
Text string `json:"text,omitempty"`
HTML string `json:"html,omitempty"`
CC Recipients `json:"cc,omitempty"`
BCC Recipients `json:"bcc,omitempty"`
ScheduledFor string `json:"scheduledFor,omitempty"`
IdempotencyKey string `json:"idempotencyKey,omitempty"`
}
type SendEventParams ¶
type SendPushParams ¶
type SendPushParams struct {
Title string `json:"title"`
Body string `json:"body"`
ExternalUserIDs []string `json:"externalUserIds,omitempty"`
Topic string `json:"topic,omitempty"`
Type string `json:"type,omitempty"`
Priority string `json:"priority,omitempty"`
TTL int `json:"ttl,omitempty"`
Data map[string]string `json:"data,omitempty"`
ImageURL string `json:"imageUrl,omitempty"`
CollapseKey string `json:"collapseKey,omitempty"`
Android *AndroidOptions `json:"android,omitempty"`
APNS *APNSOptions `json:"apns,omitempty"`
WebPush *WebPushOptions `json:"webpush,omitempty"`
ScheduledFor string `json:"scheduledFor,omitempty"`
IdempotencyKey string `json:"idempotencyKey,omitempty"`
}
type SendSMSParams ¶
type SendSMSParams struct {
To Recipients `json:"to"`
Message string `json:"message"`
From string `json:"from,omitempty"`
ScheduledFor string `json:"scheduledFor,omitempty"`
IdempotencyKey string `json:"idempotencyKey,omitempty"`
}
type SendWhatsAppParams ¶
type SendWhatsAppParams struct {
To Recipients `json:"to"`
Message string `json:"message,omitempty"`
From string `json:"from,omitempty"`
MessageType string `json:"messageType,omitempty"`
TemplateID string `json:"templateId,omitempty"`
TemplateLanguage string `json:"templateLanguage,omitempty"`
TemplateParams []string `json:"templateParams,omitempty"`
MediaURL string `json:"mediaUrl,omitempty"`
MediaType string `json:"mediaType,omitempty"`
ScheduledFor string `json:"scheduledFor,omitempty"`
IdempotencyKey string `json:"idempotencyKey,omitempty"`
}
type StartRunParams ¶
type UpdateMessagingPolicyParams ¶
type UpdateMessagingPolicyParams struct {
Timezone Nullable[string]
QuietHoursStart Nullable[string]
QuietHoursEnd Nullable[string]
DailyMarketingCapPerContact Nullable[int]
}
func (UpdateMessagingPolicyParams) MarshalJSON ¶
func (p UpdateMessagingPolicyParams) MarshalJSON() ([]byte, error)
type UpdateWebhookParams ¶
type UpdateWorkflowParams ¶
type ValidationIssue ¶
type ValidationResult ¶
type ValidationResult struct {
Valid bool `json:"valid"`
Errors []ValidationIssue `json:"errors"`
}
type WebPushOptions ¶
type Webhook ¶
type Webhook struct {
ID string `json:"id"`
URL string `json:"url"`
Events []string `json:"events"`
IsActive bool `json:"isActive"`
Description *string `json:"description"`
MaxRetries int `json:"maxRetries"`
LastTriggeredAt *string `json:"lastTriggeredAt"`
SuccessCount int `json:"successCount"`
FailureCount int `json:"failureCount"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type WebhookDelivery ¶
type WebhookDelivery struct {
ID string `json:"id"`
WebhookID string `json:"webhookId"`
MessageID *string `json:"messageId"`
EventType string `json:"eventType"`
Channel *string `json:"channel"`
Payload map[string]any `json:"payload"`
Status string `json:"status"`
HTTPStatus *int `json:"httpStatus"`
ResponseBody *string `json:"responseBody"`
ErrorMessage *string `json:"errorMessage"`
Attempts int `json:"attempts"`
NextRetryAt *string `json:"nextRetryAt"`
DeliveredAt *string `json:"deliveredAt"`
CreatedAt string `json:"createdAt"`
}
type WebhookEvent ¶
type WebhookEvent struct {
Event string `json:"event"`
Channel string `json:"channel,omitempty"`
MessageID string `json:"messageId,omitempty"`
Timestamp string `json:"timestamp"`
Data map[string]any `json:"data"`
}
func VerifyWebhook ¶
type WebhookEventInfo ¶
type WebhookSecret ¶
type WebhookSecret struct {
Secret string `json:"secret"`
}
type WebhooksService ¶
type WebhooksService struct {
// contains filtered or unexported fields
}
func (*WebhooksService) Create ¶
func (s *WebhooksService) Create(ctx context.Context, p CreateWebhookParams) (*CreatedWebhook, error)
func (*WebhooksService) Delete ¶
func (s *WebhooksService) Delete(ctx context.Context, webhookID string) error
func (*WebhooksService) Deliveries ¶
func (s *WebhooksService) Deliveries(ctx context.Context, webhookID string, limit int) ([]WebhookDelivery, error)
func (*WebhooksService) Events ¶
func (s *WebhooksService) Events(ctx context.Context) ([]WebhookEventInfo, error)
func (*WebhooksService) List ¶
func (s *WebhooksService) List(ctx context.Context) ([]Webhook, error)
func (*WebhooksService) RotateSecret ¶
func (s *WebhooksService) RotateSecret(ctx context.Context, webhookID string) (*WebhookSecret, error)
func (*WebhooksService) Update ¶
func (s *WebhooksService) Update(ctx context.Context, webhookID string, p UpdateWebhookParams) (*Webhook, error)
type WhatsAppMessage ¶
type WhatsAppMessage struct {
ID string `json:"id"`
SID string `json:"sid,omitempty"`
Channel string `json:"channel"`
To []string `json:"to"`
From string `json:"from"`
Content string `json:"content"`
MessageType string `json:"messageType"`
Status string `json:"status"`
Cost float64 `json:"cost"`
CostPerMessage float64 `json:"costPerMessage"`
Currency string `json:"currency"`
Sandbox bool `json:"sandbox,omitempty"`
ScheduledAt string `json:"scheduledAt,omitempty"`
CreatedAt string `json:"createdAt"`
Metadata map[string]any `json:"metadata,omitempty"`
}
type WhatsAppService ¶
type WhatsAppService struct {
// contains filtered or unexported fields
}
func (*WhatsAppService) Inbound ¶
func (s *WhatsAppService) Inbound(ctx context.Context, opts *PageOptions) (*Page[InboundWhatsAppMessage], error)
func (*WhatsAppService) List ¶
func (s *WhatsAppService) List(ctx context.Context, opts *PageOptions) (*Page[WhatsAppMessage], error)
func (*WhatsAppService) Send ¶
func (s *WhatsAppService) Send(ctx context.Context, p SendWhatsAppParams) (*WhatsAppMessage, error)
type Workflow ¶
type Workflow struct {
ID string `json:"id"`
Name string `json:"name"`
Description *string `json:"description"`
Status string `json:"status"`
Draft map[string]any `json:"draft"`
ActiveVersionID *string `json:"activeVersionId"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type WorkflowHook ¶
type WorkflowHookInfo ¶
type WorkflowHookInfo struct {
CreatedAt string `json:"createdAt"`
}
type WorkflowHooksService ¶
type WorkflowHooksService struct {
// contains filtered or unexported fields
}
func (*WorkflowHooksService) Create ¶
func (s *WorkflowHooksService) Create(ctx context.Context, workflowID string) (*WorkflowHook, error)
func (*WorkflowHooksService) Delete ¶
func (s *WorkflowHooksService) Delete(ctx context.Context, workflowID string) error
func (*WorkflowHooksService) Get ¶
func (s *WorkflowHooksService) Get(ctx context.Context, workflowID string) (*WorkflowHookInfo, error)
type WorkflowLaunch ¶
type WorkflowLaunch struct {
ID string `json:"id"`
WorkflowID string `json:"workflowId"`
Status string `json:"status"`
Sandbox bool `json:"sandbox"`
RunAt string `json:"runAt"`
Entered int `json:"entered"`
Skipped int `json:"skipped"`
CompletedAt *string `json:"completedAt"`
CreatedAt string `json:"createdAt"`
}
type WorkflowLaunchesService ¶
type WorkflowLaunchesService struct {
// contains filtered or unexported fields
}
func (*WorkflowLaunchesService) Cancel ¶
func (s *WorkflowLaunchesService) Cancel(ctx context.Context, launchID string) (*WorkflowLaunch, error)
func (*WorkflowLaunchesService) Create ¶
func (s *WorkflowLaunchesService) Create(ctx context.Context, workflowID string, p LaunchParams) (*WorkflowLaunch, error)
func (*WorkflowLaunchesService) Get ¶
func (s *WorkflowLaunchesService) Get(ctx context.Context, launchID string) (*WorkflowLaunch, error)
func (*WorkflowLaunchesService) List ¶
func (s *WorkflowLaunchesService) List(ctx context.Context, workflowID string) ([]WorkflowLaunch, error)
type WorkflowRun ¶
type WorkflowRun struct {
ID string `json:"id"`
WorkflowID string `json:"workflowId"`
VersionID string `json:"versionId"`
Status string `json:"status"`
Sandbox bool `json:"sandbox"`
ContactID *string `json:"contactId"`
Input map[string]any `json:"input"`
Error *string `json:"error"`
EndedAt *string `json:"endedAt"`
CreatedAt string `json:"createdAt"`
}
type WorkflowRunsService ¶
type WorkflowRunsService struct {
// contains filtered or unexported fields
}
func (*WorkflowRunsService) Cancel ¶
func (s *WorkflowRunsService) Cancel(ctx context.Context, runID string) (*WorkflowRun, error)
func (*WorkflowRunsService) Get ¶
func (s *WorkflowRunsService) Get(ctx context.Context, runID string) (*WorkflowRun, error)
func (*WorkflowRunsService) List ¶
func (s *WorkflowRunsService) List(ctx context.Context, workflowID string, opts *ListRunsOptions) (*Page[WorkflowRun], error)
func (*WorkflowRunsService) Start ¶
func (s *WorkflowRunsService) Start(ctx context.Context, workflowID string, p StartRunParams) (*WorkflowRun, error)
type WorkflowSecret ¶
type WorkflowSecretName ¶
type WorkflowSecretName struct {
Name string `json:"name"`
}
type WorkflowSecretsService ¶
type WorkflowSecretsService struct {
// contains filtered or unexported fields
}
func (*WorkflowSecretsService) Delete ¶
func (s *WorkflowSecretsService) Delete(ctx context.Context, name string) error
func (*WorkflowSecretsService) List ¶
func (s *WorkflowSecretsService) List(ctx context.Context) ([]WorkflowSecret, error)
func (*WorkflowSecretsService) Set ¶
func (s *WorkflowSecretsService) Set(ctx context.Context, name, value string) (*WorkflowSecretName, error)
type WorkflowsService ¶
type WorkflowsService struct {
Runs *WorkflowRunsService
Launches *WorkflowLaunchesService
Hooks *WorkflowHooksService
Secrets *WorkflowSecretsService
MessagingPolicy *MessagingPolicyService
// contains filtered or unexported fields
}
func (*WorkflowsService) Archive ¶
func (s *WorkflowsService) Archive(ctx context.Context, workflowID string) error
func (*WorkflowsService) Create ¶
func (s *WorkflowsService) Create(ctx context.Context, p CreateWorkflowParams) (*Workflow, error)
func (*WorkflowsService) List ¶
func (s *WorkflowsService) List(ctx context.Context, opts *ListWorkflowsOptions) (*Page[Workflow], error)
func (*WorkflowsService) PlatformEvents ¶
func (*WorkflowsService) Update ¶
func (s *WorkflowsService) Update(ctx context.Context, workflowID string, p UpdateWorkflowParams) (*Workflow, error)
func (*WorkflowsService) Validate ¶
func (s *WorkflowsService) Validate(ctx context.Context, workflowID string) (*ValidationResult, error)
Click to show internal directories.
Click to hide internal directories.