create-svc 0.1.10 → 0.1.11
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 +46 -43
- package/bin/create-service.mjs +2 -0
- package/package.json +12 -9
- package/src/cli.test.ts +28 -10
- package/src/cli.ts +195 -30
- package/src/git-bootstrap.test.ts +40 -0
- package/src/git-bootstrap.ts +110 -0
- package/src/naming.test.ts +1 -0
- package/src/naming.ts +23 -0
- package/src/post-scaffold.test.ts +19 -0
- package/src/post-scaffold.ts +17 -4
- package/src/profiles.ts +2 -5
- package/src/scaffold.test.ts +231 -40
- package/src/scaffold.ts +84 -29
- package/src/vault.test.ts +61 -1
- package/src/vault.ts +77 -15
- package/templates/shared/.github/workflows/ci.yml +2 -1
- package/templates/shared/.github/workflows/deploy.yml +2 -0
- package/templates/shared/README.md +124 -47
- package/templates/shared/grafana/alerts.yaml +54 -0
- package/templates/shared/grafana/waitlist-dashboard.json +63 -0
- package/templates/shared/scripts/authctl.ts +231 -0
- package/templates/shared/scripts/cloudrun/bootstrap.ts +14 -5
- package/templates/shared/scripts/cloudrun/cleanup.ts +64 -4
- package/templates/shared/scripts/cloudrun/cli.ts +324 -7
- package/templates/shared/scripts/cloudrun/config.ts +11 -4
- package/templates/shared/scripts/cloudrun/deploy.ts +0 -4
- package/templates/shared/scripts/cloudrun/lib.ts +174 -41
- package/templates/shared/scripts/cloudrun/neon.ts +45 -0
- package/templates/shared/scripts/dev.ts +22 -0
- package/templates/shared/scripts/ensure-local-db.ts +3 -0
- package/templates/shared/scripts/local-docker.ts +63 -0
- package/templates/shared/scripts/local-env.ts +27 -0
- package/templates/shared/scripts/seed.ts +73 -0
- package/templates/shared/scripts/wait-for-db.ts +32 -0
- package/templates/shared/service.config.ts +59 -0
- package/templates/shared/service.yaml +24 -44
- package/templates/targets/workers/.github/workflows/ci.yml +19 -0
- package/templates/targets/workers/.github/workflows/deploy.yml +19 -0
- package/templates/targets/workers/Makefile +33 -0
- package/templates/targets/workers/README.md +75 -0
- package/templates/targets/workers/package.json +35 -0
- package/templates/targets/workers/scripts/workers/cli.ts +397 -0
- package/templates/targets/workers/src/auth.ts +178 -0
- package/templates/targets/workers/src/index.ts +198 -0
- package/templates/targets/workers/src/storage.ts +370 -0
- package/templates/targets/workers/test/app.test.ts +108 -0
- package/templates/targets/workers/tsconfig.json +11 -0
- package/templates/targets/workers/wrangler.toml +24 -0
- package/templates/variants/bun-connectrpc/Makefile +14 -8
- package/templates/variants/bun-connectrpc/gen/protos/waitlist/v1/waitlist_pb.ts +424 -0
- package/templates/variants/bun-connectrpc/migrations/0000_init.sql +12 -55
- package/templates/variants/bun-connectrpc/package.json +12 -5
- package/templates/variants/bun-connectrpc/protos/waitlist/v1/waitlist.proto +91 -0
- package/templates/variants/bun-connectrpc/scripts/codegen.ts +1 -1
- package/templates/variants/bun-connectrpc/scripts/migrate.ts +4 -1
- package/templates/variants/bun-connectrpc/src/auth.ts +200 -0
- package/templates/variants/bun-connectrpc/src/db/repository.ts +67 -420
- package/templates/variants/bun-connectrpc/src/db/schema.ts +15 -64
- package/templates/variants/bun-connectrpc/src/index.ts +76 -176
- package/templates/variants/bun-connectrpc/src/temporal/activities.ts +14 -0
- package/templates/variants/bun-connectrpc/src/temporal/worker.ts +38 -0
- package/templates/variants/bun-connectrpc/src/temporal/workflows.ts +10 -0
- package/templates/variants/bun-connectrpc/src/waitlist/service.ts +172 -0
- package/templates/variants/bun-connectrpc/src/waitlist/types.ts +45 -0
- package/templates/variants/bun-connectrpc/test/app.test.ts +4 -4
- package/templates/variants/bun-connectrpc/test/waitlist.integration.test.ts +71 -0
- package/templates/variants/bun-hono/Makefile +14 -8
- package/templates/variants/bun-hono/migrations/0000_init.sql +12 -55
- package/templates/variants/bun-hono/package.json +12 -5
- package/templates/variants/bun-hono/scripts/migrate.ts +4 -1
- package/templates/variants/bun-hono/src/auth.ts +181 -0
- package/templates/variants/bun-hono/src/db/repository.ts +68 -421
- package/templates/variants/bun-hono/src/db/schema.ts +15 -64
- package/templates/variants/bun-hono/src/index.ts +65 -180
- package/templates/variants/bun-hono/src/temporal/activities.ts +14 -0
- package/templates/variants/bun-hono/src/temporal/worker.ts +38 -0
- package/templates/variants/bun-hono/src/temporal/workflows.ts +10 -0
- package/templates/variants/bun-hono/src/waitlist/service.ts +166 -0
- package/templates/variants/bun-hono/src/waitlist/types.ts +50 -0
- package/templates/variants/bun-hono/test/app.test.ts +72 -41
- package/templates/variants/bun-hono/test/waitlist.integration.test.ts +102 -0
- package/templates/variants/go-chi/Makefile +27 -11
- package/templates/variants/go-chi/atlas.hcl +8 -0
- package/templates/variants/go-chi/cmd/server/main.go +21 -10
- package/templates/variants/go-chi/go.mod +1 -3
- package/templates/variants/go-chi/internal/app/service.go +202 -685
- package/templates/variants/go-chi/internal/auth/middleware.go +289 -0
- package/templates/variants/go-chi/internal/auth/middleware_test.go +38 -0
- package/templates/variants/go-chi/internal/config/config.go +27 -11
- package/templates/variants/go-chi/internal/httpapi/routes.go +78 -157
- package/templates/variants/go-chi/internal/httpapi/waitlist_integration_test.go +199 -0
- package/templates/variants/go-chi/internal/temporal/activities.go +27 -0
- package/templates/variants/go-chi/internal/temporal/worker.go +42 -0
- package/templates/variants/go-chi/internal/temporal/workflows.go +18 -0
- package/templates/variants/go-chi/migrations/0000_init.sql +12 -55
- package/templates/variants/go-chi/migrations/atlas.sum +2 -0
- package/templates/variants/go-chi/package.json +7 -1
- package/templates/variants/go-connectrpc/Makefile +26 -9
- package/templates/variants/go-connectrpc/atlas.hcl +8 -0
- package/templates/variants/go-connectrpc/buf.gen.yaml +2 -2
- package/templates/variants/go-connectrpc/cmd/server/main.go +23 -12
- package/templates/variants/go-connectrpc/gen/waitlist/v1/waitlist.pb.go +960 -0
- package/templates/variants/go-connectrpc/gen/waitlist/v1/waitlistv1connect/waitlist.connect.go +283 -0
- package/templates/variants/go-connectrpc/go.mod +1 -1
- package/templates/variants/go-connectrpc/internal/app/service.go +202 -685
- package/templates/variants/go-connectrpc/internal/auth/middleware.go +289 -0
- package/templates/variants/go-connectrpc/internal/auth/middleware_test.go +38 -0
- package/templates/variants/go-connectrpc/internal/config/config.go +27 -11
- package/templates/variants/go-connectrpc/internal/connectapi/handler.go +78 -201
- package/templates/variants/go-connectrpc/internal/connectapi/waitlist_integration_test.go +122 -0
- package/templates/variants/go-connectrpc/internal/httpapi/routes.go +147 -9
- package/templates/variants/go-connectrpc/internal/temporal/activities.go +27 -0
- package/templates/variants/go-connectrpc/internal/temporal/worker.go +42 -0
- package/templates/variants/go-connectrpc/internal/temporal/workflows.go +18 -0
- package/templates/variants/go-connectrpc/migrations/0000_init.sql +12 -55
- package/templates/variants/go-connectrpc/migrations/atlas.sum +2 -0
- package/templates/variants/go-connectrpc/package.json +7 -1
- package/templates/variants/go-connectrpc/protos/waitlist/v1/waitlist.proto +93 -0
- package/templates/root/.github/workflows/buf-publish.yml +0 -19
- package/templates/root/.github/workflows/ci.yml +0 -26
- package/templates/root/.github/workflows/deploy.yml +0 -22
- package/templates/root/Dockerfile +0 -23
- package/templates/root/README.md +0 -69
- package/templates/root/buf.gen.yaml +0 -10
- package/templates/root/buf.yaml +0 -9
- package/templates/root/cmd/server/main.go +0 -44
- package/templates/root/gen/dns/v1/dns.pb.go +0 -623
- package/templates/root/gen/dns/v1/dnsv1connect/dns.connect.go +0 -192
- package/templates/root/go.mod +0 -10
- package/templates/root/internal/app/service.go +0 -152
- package/templates/root/internal/app/token_source.go +0 -50
- package/templates/root/internal/cloudflare/client.go +0 -160
- package/templates/root/internal/config/config.go +0 -55
- package/templates/root/internal/connectapi/handler.go +0 -79
- package/templates/root/internal/httpapi/routes.go +0 -93
- package/templates/root/internal/vault/client.go +0 -148
- package/templates/root/package.json +0 -12
- package/templates/root/protos/dns/v1/dns.proto +0 -58
- package/templates/root/scripts/cloudrun/bootstrap.ts +0 -65
- package/templates/root/scripts/cloudrun/config.ts +0 -50
- package/templates/root/scripts/cloudrun/deploy.ts +0 -41
- package/templates/root/scripts/cloudrun/lib.ts +0 -244
- package/templates/root/service.yaml +0 -50
- package/templates/root/test/go.test.ts +0 -19
- package/templates/shared/scripts/cloudrun/integrations.ts +0 -111
- package/templates/variants/bun-connectrpc/gen/protos/chat/v1/chat_pb.ts +0 -1078
- package/templates/variants/bun-connectrpc/protos/chat/v1/chat.proto +0 -228
- package/templates/variants/bun-connectrpc/src/chat/service.ts +0 -384
- package/templates/variants/bun-connectrpc/src/chat/types.ts +0 -142
- package/templates/variants/bun-connectrpc/src/storage.ts +0 -72
- package/templates/variants/bun-connectrpc/src/webhooks.ts +0 -35
- package/templates/variants/bun-connectrpc/test/list-messages.integration.test.ts +0 -182
- package/templates/variants/bun-hono/src/chat/service.ts +0 -384
- package/templates/variants/bun-hono/src/chat/types.ts +0 -142
- package/templates/variants/bun-hono/src/storage.ts +0 -72
- package/templates/variants/bun-hono/src/webhooks.ts +0 -35
- package/templates/variants/bun-hono/test/list-messages.integration.test.ts +0 -256
- package/templates/variants/go-chi/buf.gen.yaml +0 -12
- package/templates/variants/go-chi/buf.yaml +0 -9
- package/templates/variants/go-chi/cmd/migrate/main.go +0 -101
- package/templates/variants/go-chi/internal/httpapi/list_messages_integration_test.go +0 -298
- package/templates/variants/go-chi/protos/chat/v1/chat.proto +0 -219
- package/templates/variants/go-connectrpc/cmd/migrate/main.go +0 -101
- package/templates/variants/go-connectrpc/gen/chat/v1/chat.pb.go +0 -2512
- package/templates/variants/go-connectrpc/gen/chat/v1/chatv1connect/chat.connect.go +0 -571
- package/templates/variants/go-connectrpc/internal/connectapi/list_messages_integration_test.go +0 -216
- package/templates/variants/go-connectrpc/protos/chat/v1/chat.proto +0 -232
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
package main
|
|
2
|
-
|
|
3
|
-
import (
|
|
4
|
-
"log"
|
|
5
|
-
"net/http"
|
|
6
|
-
"time"
|
|
7
|
-
|
|
8
|
-
"github.com/go-chi/chi/v5"
|
|
9
|
-
"golang.org/x/net/http2"
|
|
10
|
-
"golang.org/x/net/http2/h2c"
|
|
11
|
-
|
|
12
|
-
"{{MODULE_PATH}}/internal/app"
|
|
13
|
-
"{{MODULE_PATH}}/internal/config"
|
|
14
|
-
"{{MODULE_PATH}}/internal/connectapi"
|
|
15
|
-
"{{MODULE_PATH}}/internal/httpapi"
|
|
16
|
-
"{{MODULE_PATH}}/internal/vault"
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
func main() {
|
|
20
|
-
cfg, err := config.Load()
|
|
21
|
-
if err != nil {
|
|
22
|
-
log.Fatal(err)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
httpClient := &http.Client{Timeout: 15 * time.Second}
|
|
26
|
-
vaultClient := vault.NewAppRoleClient(cfg.VaultAddr, cfg.VaultRoleIDFile, cfg.VaultSecretIDFile, httpClient)
|
|
27
|
-
tokenSource := app.NewCloudflareTokenSource(vaultClient, cfg.VaultSecretPath, cfg.VaultSecretKey)
|
|
28
|
-
service := app.NewDNSService(cfg.CloudflareZoneID, cfg.CloudflareAPIBaseURL, tokenSource)
|
|
29
|
-
|
|
30
|
-
router := chi.NewRouter()
|
|
31
|
-
httpapi.RegisterRoutes(router, service)
|
|
32
|
-
|
|
33
|
-
connectPath, connectHandler := connectapi.NewHandler(service)
|
|
34
|
-
router.Mount(connectPath, connectHandler)
|
|
35
|
-
|
|
36
|
-
server := &http.Server{
|
|
37
|
-
Addr: ":" + cfg.Port,
|
|
38
|
-
ReadHeaderTimeout: 10 * time.Second,
|
|
39
|
-
Handler: h2c.NewHandler(router, &http2.Server{}),
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
log.Printf("listening on %s", server.Addr)
|
|
43
|
-
log.Fatal(server.ListenAndServe())
|
|
44
|
-
}
|
|
@@ -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
|
-
}
|