create-svc 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +130 -11
- package/package.json +9 -4
- package/src/cli.test.ts +29 -8
- package/src/cli.ts +103 -70
- package/src/naming.test.ts +4 -2
- package/src/naming.ts +9 -1
- package/src/neon.ts +10 -8
- package/src/post-scaffold.ts +7 -28
- package/src/profiles.ts +28 -0
- package/src/scaffold.test.ts +126 -15
- package/src/scaffold.ts +94 -23
- package/src/vault.test.ts +33 -9
- package/src/vault.ts +4 -3
- package/templates/shared/README.md +135 -24
- package/templates/shared/docker-compose.yml +19 -0
- package/templates/shared/scripts/cloudrun/bootstrap.ts +15 -42
- package/templates/shared/scripts/cloudrun/cleanup.ts +17 -31
- package/templates/shared/scripts/cloudrun/config.ts +14 -19
- package/templates/shared/scripts/cloudrun/deploy.ts +19 -10
- package/templates/shared/scripts/cloudrun/integrations.ts +111 -0
- package/templates/shared/scripts/cloudrun/lib.ts +88 -112
- package/templates/shared/scripts/cloudrun/neon.ts +82 -13
- package/templates/shared/service.yaml +44 -1
- package/templates/variants/bun-connectrpc/Dockerfile +1 -0
- package/templates/variants/bun-connectrpc/Makefile +4 -1
- package/templates/variants/bun-connectrpc/gen/protos/chat/v1/chat_pb.ts +1078 -0
- package/templates/variants/bun-connectrpc/migrations/0000_init.sql +63 -0
- package/templates/variants/bun-connectrpc/package.json +17 -0
- package/templates/variants/bun-connectrpc/protos/chat/v1/chat.proto +228 -0
- package/templates/variants/bun-connectrpc/scripts/codegen.ts +31 -1
- package/templates/variants/bun-connectrpc/scripts/migrate.ts +46 -0
- package/templates/variants/bun-connectrpc/src/chat/service.ts +384 -0
- package/templates/variants/bun-connectrpc/src/chat/types.ts +142 -0
- package/templates/variants/bun-connectrpc/src/db/client.ts +15 -0
- package/templates/variants/bun-connectrpc/src/db/repository.ts +479 -0
- package/templates/variants/bun-connectrpc/src/db/schema.ts +75 -0
- package/templates/variants/bun-connectrpc/src/index.ts +294 -22
- package/templates/variants/bun-connectrpc/src/storage.ts +72 -0
- package/templates/variants/bun-connectrpc/src/webhooks.ts +35 -0
- package/templates/variants/bun-connectrpc/test/app.test.ts +14 -13
- package/templates/variants/bun-connectrpc/test/list-messages.integration.test.ts +182 -0
- package/templates/variants/bun-connectrpc/tsconfig.json +2 -1
- package/templates/variants/bun-hono/Makefile +4 -1
- package/templates/variants/bun-hono/migrations/0000_init.sql +63 -0
- package/templates/variants/bun-hono/package.json +13 -0
- package/templates/variants/bun-hono/scripts/migrate.ts +46 -0
- package/templates/variants/bun-hono/src/chat/service.ts +384 -0
- package/templates/variants/bun-hono/src/chat/types.ts +142 -0
- package/templates/variants/bun-hono/src/db/client.ts +15 -0
- package/templates/variants/bun-hono/src/db/repository.ts +479 -0
- package/templates/variants/bun-hono/src/db/schema.ts +75 -0
- package/templates/variants/bun-hono/src/index.ts +254 -8
- package/templates/variants/bun-hono/src/storage.ts +72 -0
- package/templates/variants/bun-hono/src/webhooks.ts +35 -0
- package/templates/variants/bun-hono/test/app.test.ts +60 -6
- package/templates/variants/bun-hono/test/list-messages.integration.test.ts +256 -0
- package/templates/variants/bun-hono/tsconfig.json +1 -0
- package/templates/variants/go-chi/Makefile +6 -2
- package/templates/variants/go-chi/buf.gen.yaml +2 -0
- package/templates/variants/go-chi/cmd/migrate/main.go +101 -0
- package/templates/variants/go-chi/cmd/server/main.go +16 -15
- package/templates/variants/go-chi/go.mod +3 -0
- package/templates/variants/go-chi/internal/app/service.go +763 -71
- package/templates/variants/go-chi/internal/config/config.go +22 -7
- package/templates/variants/go-chi/internal/httpapi/list_messages_integration_test.go +298 -0
- package/templates/variants/go-chi/internal/httpapi/routes.go +245 -43
- package/templates/variants/go-chi/migrations/0000_init.sql +63 -0
- package/templates/variants/go-chi/protos/chat/v1/chat.proto +219 -0
- package/templates/variants/go-chi/test/go.test.ts +4 -1
- package/templates/variants/go-connectrpc/Makefile +6 -2
- package/templates/variants/go-connectrpc/buf.gen.yaml +2 -0
- package/templates/variants/go-connectrpc/cmd/migrate/main.go +101 -0
- package/templates/variants/go-connectrpc/cmd/server/main.go +35 -11
- package/templates/variants/go-connectrpc/gen/chat/v1/chat.pb.go +2512 -0
- package/templates/variants/go-connectrpc/gen/chat/v1/chatv1connect/chat.connect.go +571 -0
- package/templates/variants/go-connectrpc/go.mod +4 -0
- package/templates/variants/go-connectrpc/internal/app/service.go +763 -71
- package/templates/variants/go-connectrpc/internal/config/config.go +22 -7
- package/templates/variants/go-connectrpc/internal/connectapi/handler.go +254 -42
- package/templates/variants/go-connectrpc/internal/connectapi/list_messages_integration_test.go +216 -0
- package/templates/variants/go-connectrpc/internal/httpapi/routes.go +41 -56
- package/templates/variants/go-connectrpc/migrations/0000_init.sql +63 -0
- package/templates/variants/go-connectrpc/protos/chat/v1/chat.proto +232 -0
- package/templates/shared/.env.example +0 -10
- package/templates/variants/go-chi/gen/dns/v1/dns.pb.go +0 -623
- package/templates/variants/go-chi/gen/dns/v1/dnsv1connect/dns.connect.go +0 -192
- package/templates/variants/go-chi/internal/connectapi/handler.go +0 -79
- package/templates/variants/go-chi/protos/dns/v1/dns.proto +0 -58
- package/templates/variants/go-connectrpc/gen/dns/v1/dns.pb.go +0 -623
- package/templates/variants/go-connectrpc/gen/dns/v1/dnsv1connect/dns.connect.go +0 -192
- package/templates/variants/go-connectrpc/protos/dns/v1/dns.proto +0 -58
|
@@ -1,623 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-go v1.36.10
|
|
4
|
-
// protoc (unknown)
|
|
5
|
-
// source: dns/v1/dns.proto
|
|
6
|
-
|
|
7
|
-
package dnsv1
|
|
8
|
-
|
|
9
|
-
import (
|
|
10
|
-
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
11
|
-
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
12
|
-
reflect "reflect"
|
|
13
|
-
sync "sync"
|
|
14
|
-
unsafe "unsafe"
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
const (
|
|
18
|
-
// Verify that this generated code is sufficiently up-to-date.
|
|
19
|
-
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
20
|
-
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
21
|
-
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
type Record struct {
|
|
25
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
26
|
-
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
27
|
-
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
28
|
-
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
29
|
-
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
|
|
30
|
-
Ttl int32 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
31
|
-
Proxied bool `protobuf:"varint,6,opt,name=proxied,proto3" json:"proxied,omitempty"`
|
|
32
|
-
unknownFields protoimpl.UnknownFields
|
|
33
|
-
sizeCache protoimpl.SizeCache
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
func (x *Record) Reset() {
|
|
37
|
-
*x = Record{}
|
|
38
|
-
mi := &file_dns_v1_dns_proto_msgTypes[0]
|
|
39
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
40
|
-
ms.StoreMessageInfo(mi)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
func (x *Record) String() string {
|
|
44
|
-
return protoimpl.X.MessageStringOf(x)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
func (*Record) ProtoMessage() {}
|
|
48
|
-
|
|
49
|
-
func (x *Record) ProtoReflect() protoreflect.Message {
|
|
50
|
-
mi := &file_dns_v1_dns_proto_msgTypes[0]
|
|
51
|
-
if x != nil {
|
|
52
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
53
|
-
if ms.LoadMessageInfo() == nil {
|
|
54
|
-
ms.StoreMessageInfo(mi)
|
|
55
|
-
}
|
|
56
|
-
return ms
|
|
57
|
-
}
|
|
58
|
-
return mi.MessageOf(x)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Deprecated: Use Record.ProtoReflect.Descriptor instead.
|
|
62
|
-
func (*Record) Descriptor() ([]byte, []int) {
|
|
63
|
-
return file_dns_v1_dns_proto_rawDescGZIP(), []int{0}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
func (x *Record) GetId() string {
|
|
67
|
-
if x != nil {
|
|
68
|
-
return x.Id
|
|
69
|
-
}
|
|
70
|
-
return ""
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
func (x *Record) GetType() string {
|
|
74
|
-
if x != nil {
|
|
75
|
-
return x.Type
|
|
76
|
-
}
|
|
77
|
-
return ""
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
func (x *Record) GetName() string {
|
|
81
|
-
if x != nil {
|
|
82
|
-
return x.Name
|
|
83
|
-
}
|
|
84
|
-
return ""
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
func (x *Record) GetContent() string {
|
|
88
|
-
if x != nil {
|
|
89
|
-
return x.Content
|
|
90
|
-
}
|
|
91
|
-
return ""
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
func (x *Record) GetTtl() int32 {
|
|
95
|
-
if x != nil {
|
|
96
|
-
return x.Ttl
|
|
97
|
-
}
|
|
98
|
-
return 0
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
func (x *Record) GetProxied() bool {
|
|
102
|
-
if x != nil {
|
|
103
|
-
return x.Proxied
|
|
104
|
-
}
|
|
105
|
-
return false
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
type ListRecordsRequest struct {
|
|
109
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
110
|
-
unknownFields protoimpl.UnknownFields
|
|
111
|
-
sizeCache protoimpl.SizeCache
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
func (x *ListRecordsRequest) Reset() {
|
|
115
|
-
*x = ListRecordsRequest{}
|
|
116
|
-
mi := &file_dns_v1_dns_proto_msgTypes[1]
|
|
117
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
118
|
-
ms.StoreMessageInfo(mi)
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
func (x *ListRecordsRequest) String() string {
|
|
122
|
-
return protoimpl.X.MessageStringOf(x)
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
func (*ListRecordsRequest) ProtoMessage() {}
|
|
126
|
-
|
|
127
|
-
func (x *ListRecordsRequest) ProtoReflect() protoreflect.Message {
|
|
128
|
-
mi := &file_dns_v1_dns_proto_msgTypes[1]
|
|
129
|
-
if x != nil {
|
|
130
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
131
|
-
if ms.LoadMessageInfo() == nil {
|
|
132
|
-
ms.StoreMessageInfo(mi)
|
|
133
|
-
}
|
|
134
|
-
return ms
|
|
135
|
-
}
|
|
136
|
-
return mi.MessageOf(x)
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Deprecated: Use ListRecordsRequest.ProtoReflect.Descriptor instead.
|
|
140
|
-
func (*ListRecordsRequest) Descriptor() ([]byte, []int) {
|
|
141
|
-
return file_dns_v1_dns_proto_rawDescGZIP(), []int{1}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
type ListRecordsResponse struct {
|
|
145
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
146
|
-
Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
|
|
147
|
-
unknownFields protoimpl.UnknownFields
|
|
148
|
-
sizeCache protoimpl.SizeCache
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
func (x *ListRecordsResponse) Reset() {
|
|
152
|
-
*x = ListRecordsResponse{}
|
|
153
|
-
mi := &file_dns_v1_dns_proto_msgTypes[2]
|
|
154
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
155
|
-
ms.StoreMessageInfo(mi)
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
func (x *ListRecordsResponse) String() string {
|
|
159
|
-
return protoimpl.X.MessageStringOf(x)
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
func (*ListRecordsResponse) ProtoMessage() {}
|
|
163
|
-
|
|
164
|
-
func (x *ListRecordsResponse) ProtoReflect() protoreflect.Message {
|
|
165
|
-
mi := &file_dns_v1_dns_proto_msgTypes[2]
|
|
166
|
-
if x != nil {
|
|
167
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
168
|
-
if ms.LoadMessageInfo() == nil {
|
|
169
|
-
ms.StoreMessageInfo(mi)
|
|
170
|
-
}
|
|
171
|
-
return ms
|
|
172
|
-
}
|
|
173
|
-
return mi.MessageOf(x)
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// Deprecated: Use ListRecordsResponse.ProtoReflect.Descriptor instead.
|
|
177
|
-
func (*ListRecordsResponse) Descriptor() ([]byte, []int) {
|
|
178
|
-
return file_dns_v1_dns_proto_rawDescGZIP(), []int{2}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
func (x *ListRecordsResponse) GetRecords() []*Record {
|
|
182
|
-
if x != nil {
|
|
183
|
-
return x.Records
|
|
184
|
-
}
|
|
185
|
-
return nil
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
type CreateRecordRequest struct {
|
|
189
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
190
|
-
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
191
|
-
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
192
|
-
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
|
|
193
|
-
Ttl int32 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
194
|
-
Proxied bool `protobuf:"varint,5,opt,name=proxied,proto3" json:"proxied,omitempty"`
|
|
195
|
-
unknownFields protoimpl.UnknownFields
|
|
196
|
-
sizeCache protoimpl.SizeCache
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
func (x *CreateRecordRequest) Reset() {
|
|
200
|
-
*x = CreateRecordRequest{}
|
|
201
|
-
mi := &file_dns_v1_dns_proto_msgTypes[3]
|
|
202
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
203
|
-
ms.StoreMessageInfo(mi)
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
func (x *CreateRecordRequest) String() string {
|
|
207
|
-
return protoimpl.X.MessageStringOf(x)
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
func (*CreateRecordRequest) ProtoMessage() {}
|
|
211
|
-
|
|
212
|
-
func (x *CreateRecordRequest) ProtoReflect() protoreflect.Message {
|
|
213
|
-
mi := &file_dns_v1_dns_proto_msgTypes[3]
|
|
214
|
-
if x != nil {
|
|
215
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
216
|
-
if ms.LoadMessageInfo() == nil {
|
|
217
|
-
ms.StoreMessageInfo(mi)
|
|
218
|
-
}
|
|
219
|
-
return ms
|
|
220
|
-
}
|
|
221
|
-
return mi.MessageOf(x)
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
// Deprecated: Use CreateRecordRequest.ProtoReflect.Descriptor instead.
|
|
225
|
-
func (*CreateRecordRequest) Descriptor() ([]byte, []int) {
|
|
226
|
-
return file_dns_v1_dns_proto_rawDescGZIP(), []int{3}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
func (x *CreateRecordRequest) GetType() string {
|
|
230
|
-
if x != nil {
|
|
231
|
-
return x.Type
|
|
232
|
-
}
|
|
233
|
-
return ""
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
func (x *CreateRecordRequest) GetName() string {
|
|
237
|
-
if x != nil {
|
|
238
|
-
return x.Name
|
|
239
|
-
}
|
|
240
|
-
return ""
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
func (x *CreateRecordRequest) GetContent() string {
|
|
244
|
-
if x != nil {
|
|
245
|
-
return x.Content
|
|
246
|
-
}
|
|
247
|
-
return ""
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
func (x *CreateRecordRequest) GetTtl() int32 {
|
|
251
|
-
if x != nil {
|
|
252
|
-
return x.Ttl
|
|
253
|
-
}
|
|
254
|
-
return 0
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
func (x *CreateRecordRequest) GetProxied() bool {
|
|
258
|
-
if x != nil {
|
|
259
|
-
return x.Proxied
|
|
260
|
-
}
|
|
261
|
-
return false
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
type CreateRecordResponse struct {
|
|
265
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
266
|
-
Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
|
|
267
|
-
unknownFields protoimpl.UnknownFields
|
|
268
|
-
sizeCache protoimpl.SizeCache
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
func (x *CreateRecordResponse) Reset() {
|
|
272
|
-
*x = CreateRecordResponse{}
|
|
273
|
-
mi := &file_dns_v1_dns_proto_msgTypes[4]
|
|
274
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
275
|
-
ms.StoreMessageInfo(mi)
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
func (x *CreateRecordResponse) String() string {
|
|
279
|
-
return protoimpl.X.MessageStringOf(x)
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
func (*CreateRecordResponse) ProtoMessage() {}
|
|
283
|
-
|
|
284
|
-
func (x *CreateRecordResponse) ProtoReflect() protoreflect.Message {
|
|
285
|
-
mi := &file_dns_v1_dns_proto_msgTypes[4]
|
|
286
|
-
if x != nil {
|
|
287
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
288
|
-
if ms.LoadMessageInfo() == nil {
|
|
289
|
-
ms.StoreMessageInfo(mi)
|
|
290
|
-
}
|
|
291
|
-
return ms
|
|
292
|
-
}
|
|
293
|
-
return mi.MessageOf(x)
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// Deprecated: Use CreateRecordResponse.ProtoReflect.Descriptor instead.
|
|
297
|
-
func (*CreateRecordResponse) Descriptor() ([]byte, []int) {
|
|
298
|
-
return file_dns_v1_dns_proto_rawDescGZIP(), []int{4}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
func (x *CreateRecordResponse) GetRecord() *Record {
|
|
302
|
-
if x != nil {
|
|
303
|
-
return x.Record
|
|
304
|
-
}
|
|
305
|
-
return nil
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
type UpdateRecordRequest struct {
|
|
309
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
310
|
-
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
311
|
-
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
312
|
-
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
313
|
-
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
|
|
314
|
-
Ttl int32 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
315
|
-
Proxied bool `protobuf:"varint,6,opt,name=proxied,proto3" json:"proxied,omitempty"`
|
|
316
|
-
unknownFields protoimpl.UnknownFields
|
|
317
|
-
sizeCache protoimpl.SizeCache
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
func (x *UpdateRecordRequest) Reset() {
|
|
321
|
-
*x = UpdateRecordRequest{}
|
|
322
|
-
mi := &file_dns_v1_dns_proto_msgTypes[5]
|
|
323
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
324
|
-
ms.StoreMessageInfo(mi)
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
func (x *UpdateRecordRequest) String() string {
|
|
328
|
-
return protoimpl.X.MessageStringOf(x)
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
func (*UpdateRecordRequest) ProtoMessage() {}
|
|
332
|
-
|
|
333
|
-
func (x *UpdateRecordRequest) ProtoReflect() protoreflect.Message {
|
|
334
|
-
mi := &file_dns_v1_dns_proto_msgTypes[5]
|
|
335
|
-
if x != nil {
|
|
336
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
337
|
-
if ms.LoadMessageInfo() == nil {
|
|
338
|
-
ms.StoreMessageInfo(mi)
|
|
339
|
-
}
|
|
340
|
-
return ms
|
|
341
|
-
}
|
|
342
|
-
return mi.MessageOf(x)
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
// Deprecated: Use UpdateRecordRequest.ProtoReflect.Descriptor instead.
|
|
346
|
-
func (*UpdateRecordRequest) Descriptor() ([]byte, []int) {
|
|
347
|
-
return file_dns_v1_dns_proto_rawDescGZIP(), []int{5}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
func (x *UpdateRecordRequest) GetId() string {
|
|
351
|
-
if x != nil {
|
|
352
|
-
return x.Id
|
|
353
|
-
}
|
|
354
|
-
return ""
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
func (x *UpdateRecordRequest) GetType() string {
|
|
358
|
-
if x != nil {
|
|
359
|
-
return x.Type
|
|
360
|
-
}
|
|
361
|
-
return ""
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
func (x *UpdateRecordRequest) GetName() string {
|
|
365
|
-
if x != nil {
|
|
366
|
-
return x.Name
|
|
367
|
-
}
|
|
368
|
-
return ""
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
func (x *UpdateRecordRequest) GetContent() string {
|
|
372
|
-
if x != nil {
|
|
373
|
-
return x.Content
|
|
374
|
-
}
|
|
375
|
-
return ""
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
func (x *UpdateRecordRequest) GetTtl() int32 {
|
|
379
|
-
if x != nil {
|
|
380
|
-
return x.Ttl
|
|
381
|
-
}
|
|
382
|
-
return 0
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
func (x *UpdateRecordRequest) GetProxied() bool {
|
|
386
|
-
if x != nil {
|
|
387
|
-
return x.Proxied
|
|
388
|
-
}
|
|
389
|
-
return false
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
type UpdateRecordResponse struct {
|
|
393
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
394
|
-
Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
|
|
395
|
-
unknownFields protoimpl.UnknownFields
|
|
396
|
-
sizeCache protoimpl.SizeCache
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
func (x *UpdateRecordResponse) Reset() {
|
|
400
|
-
*x = UpdateRecordResponse{}
|
|
401
|
-
mi := &file_dns_v1_dns_proto_msgTypes[6]
|
|
402
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
403
|
-
ms.StoreMessageInfo(mi)
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
func (x *UpdateRecordResponse) String() string {
|
|
407
|
-
return protoimpl.X.MessageStringOf(x)
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
func (*UpdateRecordResponse) ProtoMessage() {}
|
|
411
|
-
|
|
412
|
-
func (x *UpdateRecordResponse) ProtoReflect() protoreflect.Message {
|
|
413
|
-
mi := &file_dns_v1_dns_proto_msgTypes[6]
|
|
414
|
-
if x != nil {
|
|
415
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
416
|
-
if ms.LoadMessageInfo() == nil {
|
|
417
|
-
ms.StoreMessageInfo(mi)
|
|
418
|
-
}
|
|
419
|
-
return ms
|
|
420
|
-
}
|
|
421
|
-
return mi.MessageOf(x)
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
// Deprecated: Use UpdateRecordResponse.ProtoReflect.Descriptor instead.
|
|
425
|
-
func (*UpdateRecordResponse) Descriptor() ([]byte, []int) {
|
|
426
|
-
return file_dns_v1_dns_proto_rawDescGZIP(), []int{6}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
func (x *UpdateRecordResponse) GetRecord() *Record {
|
|
430
|
-
if x != nil {
|
|
431
|
-
return x.Record
|
|
432
|
-
}
|
|
433
|
-
return nil
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
type DeleteRecordRequest struct {
|
|
437
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
438
|
-
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
439
|
-
unknownFields protoimpl.UnknownFields
|
|
440
|
-
sizeCache protoimpl.SizeCache
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
func (x *DeleteRecordRequest) Reset() {
|
|
444
|
-
*x = DeleteRecordRequest{}
|
|
445
|
-
mi := &file_dns_v1_dns_proto_msgTypes[7]
|
|
446
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
447
|
-
ms.StoreMessageInfo(mi)
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
func (x *DeleteRecordRequest) String() string {
|
|
451
|
-
return protoimpl.X.MessageStringOf(x)
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
func (*DeleteRecordRequest) ProtoMessage() {}
|
|
455
|
-
|
|
456
|
-
func (x *DeleteRecordRequest) ProtoReflect() protoreflect.Message {
|
|
457
|
-
mi := &file_dns_v1_dns_proto_msgTypes[7]
|
|
458
|
-
if x != nil {
|
|
459
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
460
|
-
if ms.LoadMessageInfo() == nil {
|
|
461
|
-
ms.StoreMessageInfo(mi)
|
|
462
|
-
}
|
|
463
|
-
return ms
|
|
464
|
-
}
|
|
465
|
-
return mi.MessageOf(x)
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
// Deprecated: Use DeleteRecordRequest.ProtoReflect.Descriptor instead.
|
|
469
|
-
func (*DeleteRecordRequest) Descriptor() ([]byte, []int) {
|
|
470
|
-
return file_dns_v1_dns_proto_rawDescGZIP(), []int{7}
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
func (x *DeleteRecordRequest) GetId() string {
|
|
474
|
-
if x != nil {
|
|
475
|
-
return x.Id
|
|
476
|
-
}
|
|
477
|
-
return ""
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
type DeleteRecordResponse struct {
|
|
481
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
482
|
-
unknownFields protoimpl.UnknownFields
|
|
483
|
-
sizeCache protoimpl.SizeCache
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
func (x *DeleteRecordResponse) Reset() {
|
|
487
|
-
*x = DeleteRecordResponse{}
|
|
488
|
-
mi := &file_dns_v1_dns_proto_msgTypes[8]
|
|
489
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
490
|
-
ms.StoreMessageInfo(mi)
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
func (x *DeleteRecordResponse) String() string {
|
|
494
|
-
return protoimpl.X.MessageStringOf(x)
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
func (*DeleteRecordResponse) ProtoMessage() {}
|
|
498
|
-
|
|
499
|
-
func (x *DeleteRecordResponse) ProtoReflect() protoreflect.Message {
|
|
500
|
-
mi := &file_dns_v1_dns_proto_msgTypes[8]
|
|
501
|
-
if x != nil {
|
|
502
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
503
|
-
if ms.LoadMessageInfo() == nil {
|
|
504
|
-
ms.StoreMessageInfo(mi)
|
|
505
|
-
}
|
|
506
|
-
return ms
|
|
507
|
-
}
|
|
508
|
-
return mi.MessageOf(x)
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
// Deprecated: Use DeleteRecordResponse.ProtoReflect.Descriptor instead.
|
|
512
|
-
func (*DeleteRecordResponse) Descriptor() ([]byte, []int) {
|
|
513
|
-
return file_dns_v1_dns_proto_rawDescGZIP(), []int{8}
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
var File_dns_v1_dns_proto protoreflect.FileDescriptor
|
|
517
|
-
|
|
518
|
-
const file_dns_v1_dns_proto_rawDesc = "" +
|
|
519
|
-
"\n" +
|
|
520
|
-
"\x10dns/v1/dns.proto\x12\x06dns.v1\"\x86\x01\n" +
|
|
521
|
-
"\x06Record\x12\x0e\n" +
|
|
522
|
-
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
523
|
-
"\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
|
|
524
|
-
"\x04name\x18\x03 \x01(\tR\x04name\x12\x18\n" +
|
|
525
|
-
"\acontent\x18\x04 \x01(\tR\acontent\x12\x10\n" +
|
|
526
|
-
"\x03ttl\x18\x05 \x01(\x05R\x03ttl\x12\x18\n" +
|
|
527
|
-
"\aproxied\x18\x06 \x01(\bR\aproxied\"\x14\n" +
|
|
528
|
-
"\x12ListRecordsRequest\"?\n" +
|
|
529
|
-
"\x13ListRecordsResponse\x12(\n" +
|
|
530
|
-
"\arecords\x18\x01 \x03(\v2\x0e.dns.v1.RecordR\arecords\"\x83\x01\n" +
|
|
531
|
-
"\x13CreateRecordRequest\x12\x12\n" +
|
|
532
|
-
"\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n" +
|
|
533
|
-
"\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n" +
|
|
534
|
-
"\acontent\x18\x03 \x01(\tR\acontent\x12\x10\n" +
|
|
535
|
-
"\x03ttl\x18\x04 \x01(\x05R\x03ttl\x12\x18\n" +
|
|
536
|
-
"\aproxied\x18\x05 \x01(\bR\aproxied\">\n" +
|
|
537
|
-
"\x14CreateRecordResponse\x12&\n" +
|
|
538
|
-
"\x06record\x18\x01 \x01(\v2\x0e.dns.v1.RecordR\x06record\"\x93\x01\n" +
|
|
539
|
-
"\x13UpdateRecordRequest\x12\x0e\n" +
|
|
540
|
-
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
541
|
-
"\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
|
|
542
|
-
"\x04name\x18\x03 \x01(\tR\x04name\x12\x18\n" +
|
|
543
|
-
"\acontent\x18\x04 \x01(\tR\acontent\x12\x10\n" +
|
|
544
|
-
"\x03ttl\x18\x05 \x01(\x05R\x03ttl\x12\x18\n" +
|
|
545
|
-
"\aproxied\x18\x06 \x01(\bR\aproxied\">\n" +
|
|
546
|
-
"\x14UpdateRecordResponse\x12&\n" +
|
|
547
|
-
"\x06record\x18\x01 \x01(\v2\x0e.dns.v1.RecordR\x06record\"%\n" +
|
|
548
|
-
"\x13DeleteRecordRequest\x12\x0e\n" +
|
|
549
|
-
"\x02id\x18\x01 \x01(\tR\x02id\"\x16\n" +
|
|
550
|
-
"\x14DeleteRecordResponse2\xbd\x02\n" +
|
|
551
|
-
"\n" +
|
|
552
|
-
"DNSService\x12H\n" +
|
|
553
|
-
"\vListRecords\x12\x1a.dns.v1.ListRecordsRequest\x1a\x1b.dns.v1.ListRecordsResponse\"\x00\x12K\n" +
|
|
554
|
-
"\fCreateRecord\x12\x1b.dns.v1.CreateRecordRequest\x1a\x1c.dns.v1.CreateRecordResponse\"\x00\x12K\n" +
|
|
555
|
-
"\fUpdateRecord\x12\x1b.dns.v1.UpdateRecordRequest\x1a\x1c.dns.v1.UpdateRecordResponse\"\x00\x12K\n" +
|
|
556
|
-
"\fDeleteRecord\x12\x1b.dns.v1.DeleteRecordRequest\x1a\x1c.dns.v1.DeleteRecordResponse\"\x00B)Z'{{MODULE_PATH}}/gen/dns/v1;dnsv1b\x06proto3"
|
|
557
|
-
|
|
558
|
-
var (
|
|
559
|
-
file_dns_v1_dns_proto_rawDescOnce sync.Once
|
|
560
|
-
file_dns_v1_dns_proto_rawDescData []byte
|
|
561
|
-
)
|
|
562
|
-
|
|
563
|
-
func file_dns_v1_dns_proto_rawDescGZIP() []byte {
|
|
564
|
-
file_dns_v1_dns_proto_rawDescOnce.Do(func() {
|
|
565
|
-
file_dns_v1_dns_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_dns_v1_dns_proto_rawDesc), len(file_dns_v1_dns_proto_rawDesc)))
|
|
566
|
-
})
|
|
567
|
-
return file_dns_v1_dns_proto_rawDescData
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
var file_dns_v1_dns_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
571
|
-
var file_dns_v1_dns_proto_goTypes = []any{
|
|
572
|
-
(*Record)(nil), // 0: dns.v1.Record
|
|
573
|
-
(*ListRecordsRequest)(nil), // 1: dns.v1.ListRecordsRequest
|
|
574
|
-
(*ListRecordsResponse)(nil), // 2: dns.v1.ListRecordsResponse
|
|
575
|
-
(*CreateRecordRequest)(nil), // 3: dns.v1.CreateRecordRequest
|
|
576
|
-
(*CreateRecordResponse)(nil), // 4: dns.v1.CreateRecordResponse
|
|
577
|
-
(*UpdateRecordRequest)(nil), // 5: dns.v1.UpdateRecordRequest
|
|
578
|
-
(*UpdateRecordResponse)(nil), // 6: dns.v1.UpdateRecordResponse
|
|
579
|
-
(*DeleteRecordRequest)(nil), // 7: dns.v1.DeleteRecordRequest
|
|
580
|
-
(*DeleteRecordResponse)(nil), // 8: dns.v1.DeleteRecordResponse
|
|
581
|
-
}
|
|
582
|
-
var file_dns_v1_dns_proto_depIdxs = []int32{
|
|
583
|
-
0, // 0: dns.v1.ListRecordsResponse.records:type_name -> dns.v1.Record
|
|
584
|
-
0, // 1: dns.v1.CreateRecordResponse.record:type_name -> dns.v1.Record
|
|
585
|
-
0, // 2: dns.v1.UpdateRecordResponse.record:type_name -> dns.v1.Record
|
|
586
|
-
1, // 3: dns.v1.DNSService.ListRecords:input_type -> dns.v1.ListRecordsRequest
|
|
587
|
-
3, // 4: dns.v1.DNSService.CreateRecord:input_type -> dns.v1.CreateRecordRequest
|
|
588
|
-
5, // 5: dns.v1.DNSService.UpdateRecord:input_type -> dns.v1.UpdateRecordRequest
|
|
589
|
-
7, // 6: dns.v1.DNSService.DeleteRecord:input_type -> dns.v1.DeleteRecordRequest
|
|
590
|
-
2, // 7: dns.v1.DNSService.ListRecords:output_type -> dns.v1.ListRecordsResponse
|
|
591
|
-
4, // 8: dns.v1.DNSService.CreateRecord:output_type -> dns.v1.CreateRecordResponse
|
|
592
|
-
6, // 9: dns.v1.DNSService.UpdateRecord:output_type -> dns.v1.UpdateRecordResponse
|
|
593
|
-
8, // 10: dns.v1.DNSService.DeleteRecord:output_type -> dns.v1.DeleteRecordResponse
|
|
594
|
-
7, // [7:11] is the sub-list for method output_type
|
|
595
|
-
3, // [3:7] is the sub-list for method input_type
|
|
596
|
-
3, // [3:3] is the sub-list for extension type_name
|
|
597
|
-
3, // [3:3] is the sub-list for extension extendee
|
|
598
|
-
0, // [0:3] is the sub-list for field type_name
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
func init() { file_dns_v1_dns_proto_init() }
|
|
602
|
-
func file_dns_v1_dns_proto_init() {
|
|
603
|
-
if File_dns_v1_dns_proto != nil {
|
|
604
|
-
return
|
|
605
|
-
}
|
|
606
|
-
type x struct{}
|
|
607
|
-
out := protoimpl.TypeBuilder{
|
|
608
|
-
File: protoimpl.DescBuilder{
|
|
609
|
-
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
610
|
-
RawDescriptor: unsafe.Slice(unsafe.StringData(file_dns_v1_dns_proto_rawDesc), len(file_dns_v1_dns_proto_rawDesc)),
|
|
611
|
-
NumEnums: 0,
|
|
612
|
-
NumMessages: 9,
|
|
613
|
-
NumExtensions: 0,
|
|
614
|
-
NumServices: 1,
|
|
615
|
-
},
|
|
616
|
-
GoTypes: file_dns_v1_dns_proto_goTypes,
|
|
617
|
-
DependencyIndexes: file_dns_v1_dns_proto_depIdxs,
|
|
618
|
-
MessageInfos: file_dns_v1_dns_proto_msgTypes,
|
|
619
|
-
}.Build()
|
|
620
|
-
File_dns_v1_dns_proto = out.File
|
|
621
|
-
file_dns_v1_dns_proto_goTypes = nil
|
|
622
|
-
file_dns_v1_dns_proto_depIdxs = nil
|
|
623
|
-
}
|