Documentation
¶
Index ¶
- Variables
- type Client
- type LiveActivitiesService
- func (s *LiveActivitiesService) End(input any) (*generated.LiveActivityEndResponse, error)
- func (s *LiveActivitiesService) EndLiveActivity(request generated.LiveActivityEndRequest) (*generated.LiveActivityEndResponse, error)
- func (s *LiveActivitiesService) Start(input any) (*generated.LiveActivityStartResponse, error)
- func (s *LiveActivitiesService) StartLiveActivity(request generated.LiveActivityStartRequest) (*generated.LiveActivityStartResponse, error)
- func (s *LiveActivitiesService) Update(input any) (*generated.LiveActivityUpdateResponse, error)
- func (s *LiveActivitiesService) UpdateLiveActivity(request generated.LiveActivityUpdateRequest) (*generated.LiveActivityUpdateResponse, error)
- type LiveActivityEndInput
- type LiveActivityStartInput
- type LiveActivityUpdateInput
- type NotificationsService
- type Options
- type PushNotificationInput
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAPIKeyRequired = errors.New("activitysmith: apiKey is required")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Notifications *NotificationsService
LiveActivities *LiveActivitiesService
// contains filtered or unexported fields
}
type LiveActivitiesService ¶
type LiveActivitiesService struct {
// contains filtered or unexported fields
}
func (*LiveActivitiesService) End ¶
func (s *LiveActivitiesService) End(input any) (*generated.LiveActivityEndResponse, error)
func (*LiveActivitiesService) EndLiveActivity ¶
func (s *LiveActivitiesService) EndLiveActivity(request generated.LiveActivityEndRequest) (*generated.LiveActivityEndResponse, error)
func (*LiveActivitiesService) Start ¶
func (s *LiveActivitiesService) Start(input any) (*generated.LiveActivityStartResponse, error)
func (*LiveActivitiesService) StartLiveActivity ¶
func (s *LiveActivitiesService) StartLiveActivity(request generated.LiveActivityStartRequest) (*generated.LiveActivityStartResponse, error)
Backward-compatible aliases.
func (*LiveActivitiesService) Update ¶
func (s *LiveActivitiesService) Update(input any) (*generated.LiveActivityUpdateResponse, error)
func (*LiveActivitiesService) UpdateLiveActivity ¶
func (s *LiveActivitiesService) UpdateLiveActivity(request generated.LiveActivityUpdateRequest) (*generated.LiveActivityUpdateResponse, error)
type LiveActivityEndInput ¶ added in v0.1.1
type LiveActivityEndInput struct {
ActivityID string
Title string
CurrentStep int32
Subtitle string
Color string
StepColor string
NumberOfSteps int32
AutoDismissMinutes int32
// contains filtered or unexported fields
}
LiveActivityEndInput is a handwritten DX input with plain optional values.
func (LiveActivityEndInput) WithAutoDismissMinutes ¶ added in v0.1.1
func (in LiveActivityEndInput) WithAutoDismissMinutes(v int32) LiveActivityEndInput
WithAutoDismissMinutes forces inclusion of auto_dismiss_minutes, including explicit zero.
func (LiveActivityEndInput) WithNumberOfSteps ¶ added in v0.1.1
func (in LiveActivityEndInput) WithNumberOfSteps(v int32) LiveActivityEndInput
WithNumberOfSteps forces inclusion of number_of_steps, including explicit zero.
type LiveActivityStartInput ¶ added in v0.1.1
type LiveActivityStartInput struct {
Title string
NumberOfSteps int32
CurrentStep int32
Type string
Subtitle string
Color string
StepColor string
Channels []string
}
LiveActivityStartInput is a handwritten DX input with plain optional values.
type LiveActivityUpdateInput ¶ added in v0.1.1
type LiveActivityUpdateInput struct {
ActivityID string
Title string
CurrentStep int32
Subtitle string
Color string
StepColor string
NumberOfSteps int32
// contains filtered or unexported fields
}
LiveActivityUpdateInput is a handwritten DX input with plain optional values.
func (LiveActivityUpdateInput) WithNumberOfSteps ¶ added in v0.1.1
func (in LiveActivityUpdateInput) WithNumberOfSteps(v int32) LiveActivityUpdateInput
WithNumberOfSteps forces inclusion of number_of_steps, including explicit zero.
type NotificationsService ¶
type NotificationsService struct {
// contains filtered or unexported fields
}
func (*NotificationsService) Send ¶
func (s *NotificationsService) Send(input any) (*generated.PushNotificationResponse, error)
func (*NotificationsService) SendPushNotification ¶
func (s *NotificationsService) SendPushNotification(request generated.PushNotificationRequest) (*generated.PushNotificationResponse, error)
Backward-compatible alias.
Click to show internal directories.
Click to hide internal directories.