File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
generator/golang/templates/ref Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ import (
56
56
`
57
57
58
58
var processorRef = `
59
-
60
59
{{- $BasePrefix := ServicePrefix .Base}}
61
60
{{- $BaseService := ServiceName .Base}}
62
61
{{- $ServiceName := .GoName}}
@@ -89,6 +88,23 @@ var New{{$ResType}} = {{$RefPackage}}.New{{$ResType}}
89
88
90
89
{{- end}}{{/* range .Functions */}}
91
90
91
+ {{- if not Features.NoProcessor}}
92
+ // processor refs
93
+ {{- $ProcessorName := printf "%s%s" $ServiceName "Processor"}}
94
+ {{- $ClientName := printf "%s%s" $ServiceName "Client"}}
95
+
96
+ type {{$ProcessorName}} = {{$RefPackage}}.{{$ProcessorName}}
97
+
98
+ var New{{$ProcessorName}} = {{$RefPackage}}.New{{$ProcessorName}}
99
+
100
+ var New{{$ClientName}} = {{$RefPackage}}.New{{$ClientName}}
101
+
102
+ var New{{$ClientName}}Factory = {{$RefPackage}}.New{{$ClientName}}
103
+
104
+ var New{{$ClientName}}Protocol = {{$RefPackage}}.New{{$ClientName}}Protocol
105
+
106
+
107
+ {{- end}}{{/* if not Features.NoProcessor */}}
92
108
`
93
109
94
110
var constRef = `{{- $Consts := .Constants.GoConstants}}
You can’t perform that action at this time.
0 commit comments