forked from goadesign/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.go
77 lines (67 loc) · 2.12 KB
/
service.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
// Code generated by goa v3.13.1, DO NOT EDIT.
//
// text service
//
// Command:
// $ goa gen github.com/ikawaha/examples/encodings/text/design
package text
import (
"context"
)
// The text service performs operations on strings
type Service interface {
// Concatstrings implements concatstrings.
Concatstrings(context.Context, *ConcatstringsPayload) (res string, err error)
// Concatbytes implements concatbytes.
Concatbytes(context.Context, *ConcatbytesPayload) (res []byte, err error)
// Concatstringfield implements concatstringfield.
Concatstringfield(context.Context, *ConcatstringfieldPayload) (res *MyConcatenation, err error)
// Concatbytesfield implements concatbytesfield.
Concatbytesfield(context.Context, *ConcatbytesfieldPayload) (res *MyConcatenation, err error)
}
// ServiceName is the name of the service as defined in the design. This is the
// same value that is set in the endpoint request contexts under the ServiceKey
// key.
const ServiceName = "text"
// MethodNames lists the service method names as defined in the design. These
// are the same values that are set in the endpoint request contexts under the
// MethodKey key.
var MethodNames = [4]string{"concatstrings", "concatbytes", "concatstringfield", "concatbytesfield"}
// ConcatbytesPayload is the payload type of the text service concatbytes
// method.
type ConcatbytesPayload struct {
// Left operand
A string
// Right operand
B string
}
// ConcatbytesfieldPayload is the payload type of the text service
// concatbytesfield method.
type ConcatbytesfieldPayload struct {
// Left operand
A string
// Right operand
B string
}
// ConcatstringfieldPayload is the payload type of the text service
// concatstringfield method.
type ConcatstringfieldPayload struct {
// Left operand
A string
// Right operand
B string
}
// ConcatstringsPayload is the payload type of the text service concatstrings
// method.
type ConcatstringsPayload struct {
// Left operand
A string
// Right operand
B string
}
// MyConcatenation is the result type of the text service concatstringfield
// method.
type MyConcatenation struct {
Stringfield *string
Bytesfield []byte
}