/
stub.go
38 lines (29 loc) · 1.19 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
// Generated by github.com/temporalio/temporal-aws-sdk-generator
// from github.com/aws/aws-sdk-go version 1.35.7
package qldbsessionstub
import (
"github.com/aws/aws-sdk-go/service/qldbsession"
"go.uber.org/cadence/workflow"
"github.com/banzaicloud/cadence-aws-sdk/clients"
)
// ensure that imports are valid even if not used by the generated code
var _ clients.VoidFuture
type stub struct{}
type SendCommandFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *SendCommandFuture) Get(ctx workflow.Context) (*qldbsession.SendCommandOutput, error) {
var output qldbsession.SendCommandOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
func (a *stub) SendCommand(ctx workflow.Context, input *qldbsession.SendCommandInput) (*qldbsession.SendCommandOutput, error) {
var output qldbsession.SendCommandOutput
err := workflow.ExecuteActivity(ctx, "aws-qldbsession-SendCommand", input).Get(ctx, &output)
return &output, err
}
func (a *stub) SendCommandAsync(ctx workflow.Context, input *qldbsession.SendCommandInput) *SendCommandFuture {
future := workflow.ExecuteActivity(ctx, "aws-qldbsession-SendCommand", input)
return &SendCommandFuture{Future: future}
}