-
Notifications
You must be signed in to change notification settings - Fork 14
/
serviceinterface.go
116 lines (94 loc) · 4.21 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by sysl DO NOT EDIT.
package simple
import (
"context"
"net/http"
"time"
"github.com/anz-bank/sysl-go/codegen/tests/deps"
"github.com/anz-bank/sysl-go/codegen/tests/downstream"
"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)
GetServiceDocsList func(ctx context.Context, req *downstream.GetServiceDocsListRequest) (*[]downstream.ServiceDoc, error)
}
// GetGetSomeBytesList Client
type GetGetSomeBytesListClient struct {
}
// 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 {
}
// GetPetaList Client
type GetPetaListClient struct {
}
// GetRawList Client
type GetRawListClient struct {
}
// GetRawIntList Client
type GetRawIntListClient struct {
}
// GetRawStatesList Client
type GetRawStatesListClient struct {
}
// GetRawIdStatesList Client
type GetRawIdStatesListClient struct {
}
// GetRawStates2List Client
type GetRawStates2ListClient struct {
}
// GetSimpleAPIDocsList Client
type GetSimpleAPIDocsListClient struct {
GetApiDocsList func(ctx context.Context, req *deps.GetApiDocsListRequest) (*deps.ApiDoc, error)
GetSuccessList func(ctx context.Context, req *deps.GetSuccessListRequest) (*http.Header, 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)
GetGetSomeBytesList func(ctx context.Context, req *GetGetSomeBytesListRequest, client GetGetSomeBytesListClient) (*Pdf, 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)
GetPetaList func(ctx context.Context, req *GetPetaListRequest, client GetPetaListClient) (*PetA, error)
GetRawList func(ctx context.Context, req *GetRawListRequest, client GetRawListClient) (*Str, error)
GetRawIntList func(ctx context.Context, req *GetRawIntListRequest, client GetRawIntListClient) (*Integer, error)
GetRawStatesList func(ctx context.Context, req *GetRawStatesListRequest, client GetRawStatesListClient) (*[]Status, error)
GetRawIdStatesList func(ctx context.Context, req *GetRawIdStatesListRequest, client GetRawIdStatesListClient) (*Str, error)
GetRawStates2List func(ctx context.Context, req *GetRawStates2ListRequest, client GetRawStates2ListClient) (*Str, 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"`
Downstream config.CommonDownstreamData `yaml:"downstream"`
}