-
Notifications
You must be signed in to change notification settings - Fork 14
/
serviceinterface.go
86 lines (69 loc) · 2.9 KB
/
serviceinterface.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Code generated by sysl DO NOT EDIT.
package simple
import (
"context"
"time"
"github.com/anz-bank/sysl-go/codegen/tests/deps"
"github.com/anz-bank/sysl-go/config"
)
// DefaultSimpleImpl ...
type DefaultSimpleImpl struct {
}
// NewDefaultSimpleImpl for Simple
func NewDefaultSimpleImpl() *DefaultSimpleImpl {
return &DefaultSimpleImpl{}
}
// GetApiDocsList Client
type GetApiDocsListClient struct {
GetApiDocsList func(ctx context.Context, req *deps.GetApiDocsListRequest) (*deps.ApiDoc, error)
}
// GetJustOkAndJustErrorList Client
type GetJustOkAndJustErrorListClient struct {
}
// GetJustReturnErrorList Client
type GetJustReturnErrorListClient struct {
}
// GetJustReturnOkList Client
type GetJustReturnOkListClient struct {
}
// GetOkTypeAndJustErrorList Client
type GetOkTypeAndJustErrorListClient struct {
}
// GetOopsList Client
type GetOopsListClient struct {
}
// GetRawList Client
type GetRawListClient struct {
}
// GetRawIntList Client
type GetRawIntListClient struct {
}
// GetSimpleAPIDocsList Client
type GetSimpleAPIDocsListClient struct {
GetApiDocsList func(ctx context.Context, req *deps.GetApiDocsListRequest) (*deps.ApiDoc, error)
}
// GetStuffList Client
type GetStuffListClient struct {
}
// PostStuff Client
type PostStuffClient struct {
}
// ServiceInterface for Simple
type ServiceInterface struct {
GetApiDocsList func(ctx context.Context, req *GetApiDocsListRequest, client GetApiDocsListClient) (*deps.ApiDoc, error)
GetJustOkAndJustErrorList func(ctx context.Context, req *GetJustOkAndJustErrorListRequest, client GetJustOkAndJustErrorListClient) error
GetJustReturnErrorList func(ctx context.Context, req *GetJustReturnErrorListRequest, client GetJustReturnErrorListClient) error
GetJustReturnOkList func(ctx context.Context, req *GetJustReturnOkListRequest, client GetJustReturnOkListClient) error
GetOkTypeAndJustErrorList func(ctx context.Context, req *GetOkTypeAndJustErrorListRequest, client GetOkTypeAndJustErrorListClient) (*Response, error)
GetOopsList func(ctx context.Context, req *GetOopsListRequest, client GetOopsListClient) (*Response, error)
GetRawList func(ctx context.Context, req *GetRawListRequest, client GetRawListClient) (*Str, error)
GetRawIntList func(ctx context.Context, req *GetRawIntListRequest, client GetRawIntListClient) (*Integer, error)
GetSimpleAPIDocsList func(ctx context.Context, req *GetSimpleAPIDocsListRequest, client GetSimpleAPIDocsListClient) (*deps.ApiDoc, error)
GetStuffList func(ctx context.Context, req *GetStuffListRequest, client GetStuffListClient) (*Stuff, error)
PostStuff func(ctx context.Context, req *PostStuffRequest, client PostStuffClient) (*Str, error)
}
// DownstreamConfig for Simple
type DownstreamConfig struct {
ContextTimeout time.Duration `yaml:"contextTimeout"`
Deps config.CommonDownstreamData `yaml:"deps"`
}