-
Notifications
You must be signed in to change notification settings - Fork 6
/
stub.go
39 lines (30 loc) · 1.26 KB
/
stub.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Generated by github.com/temporalio/temporal-aws-sdk-generator
// from github.com/aws/aws-sdk-go version 1.35.7
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
package kinesisvideomediastub
import (
"github.com/aws/aws-sdk-go/service/kinesisvideomedia"
"go.temporal.io/sdk/workflow"
"go.temporal.io/aws-sdk/clients"
)
// ensure that imports are valid even if not used by the generated code
var _ clients.VoidFuture
type stub struct{}
type GetMediaFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *GetMediaFuture) Get(ctx workflow.Context) (*kinesisvideomedia.GetMediaOutput, error) {
var output kinesisvideomedia.GetMediaOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
func (a *stub) GetMedia(ctx workflow.Context, input *kinesisvideomedia.GetMediaInput) (*kinesisvideomedia.GetMediaOutput, error) {
var output kinesisvideomedia.GetMediaOutput
err := workflow.ExecuteActivity(ctx, "aws.kinesisvideomedia.GetMedia", input).Get(ctx, &output)
return &output, err
}
func (a *stub) GetMediaAsync(ctx workflow.Context, input *kinesisvideomedia.GetMediaInput) *GetMediaFuture {
future := workflow.ExecuteActivity(ctx, "aws.kinesisvideomedia.GetMedia", input)
return &GetMediaFuture{Future: future}
}