-
Notifications
You must be signed in to change notification settings - Fork 14
/
simple.go
47 lines (38 loc) · 949 Bytes
/
simple.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
package simple
import (
"context"
)
func GetRawList(ctx context.Context, req *GetRawListRequest, client GetRawListClient) (*Str, error) {
var s Str = "raw"
return &s, nil
}
func GetRawIntList(ctx context.Context, req *GetRawIntListRequest, client GetRawIntListClient) (*Integer, error) {
var s Integer = 123
return &s, nil
}
func GetRawIdStatesList(ctx context.Context, req *GetRawIdStatesListRequest, client GetRawIdStatesListClient) (*Str, error) {
var s Str = "raw"
return &s, nil
}
func GetStuffList(ctx context.Context, req *GetStuffListRequest, client GetStuffListClient) (*Stuff, error) {
s := Stuff{
InnerStuff: "response",
ResponseStuff: Response{
Data: ItemSet{
M: map[string]Item{
"John": {
A1: "CollinsSt",
A2: "LonasDaleSt",
Name: "John",
},
"James": {
A1: "SpencerSt",
A2: "CollinsSt",
Name: "James",
},
},
},
},
}
return &s, nil
}