-
Notifications
You must be signed in to change notification settings - Fork 1
/
server.micro.go
57 lines (54 loc) · 1.88 KB
/
server.micro.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
package example
import (
"context"
categories2 "github.com/kennyzhu/go-os/src/dbservice/tools/example/categories"
)
type exampleServiceServer struct {
}
func NewExampleServiceServer() *exampleServiceServer {
return &exampleServiceServer{}
}
func (s *exampleServiceServer) GetAlphaTime(ctx context.Context, in *GetAlphaTimeRequest, result *MyTime) (err error) {
tempResult := new(MyTime)
aux := GetAlphaTime()
tempResult = &aux
*result = *tempResult
return
}
func (s *exampleServiceServer) GetDurationForLength(ctx context.Context, in *GetDurationForLengthRequest, result *MyDuration) (err error) {
tempResult := new(MyDuration)
tempResult = GetDurationForLength(in.Arg1)
*result = *tempResult
return
}
func (s *exampleServiceServer) GetDurationForLengthCtx(ctx context.Context, in *GetDurationForLengthCtxRequest, result *MyDuration) (err error) {
tempResult := new(MyDuration)
tempResult, err = GetDurationForLengthCtx(ctx, in.Arg1)
*result = *tempResult
return
}
func (s *exampleServiceServer) GetOmegaTime(ctx context.Context, in *GetOmegaTimeRequest, result *MyTime) (err error) {
tempResult := new(MyTime)
tempResult, err = GetOmegaTime()
*result = *tempResult
return
}
func (s *exampleServiceServer) GetPhone(ctx context.Context, in *GetPhoneRequest, result *Product) (err error) {
tempResult := new(Product)
tempResult = GetPhone()
*result = *tempResult
return
}
func (s *exampleServiceServer) RandomCategory(ctx context.Context, in *RandomCategoryRequest, result *categories2.CategoryOptions) (err error) {
tempResult := new(categories2.CategoryOptions)
aux := RandomCategory()
tempResult = &aux
*result = *tempResult
return
}
func (s *exampleServiceServer) RandomNumber(ctx context.Context, in *RandomNumberRequest, result *RandomNumberResponse) (err error) {
tempResult := new(RandomNumberResponse)
tempResult.Result1 = RandomNumber(in.Arg1, in.Arg2)
*result = *tempResult
return
}