Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
f54b05a5
Commit
f54b05a5
authored
May 20, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak comments
parent
613c9e94
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
45 additions
and
45 deletions
+45
-45
apidocs.swagger.yaml
docs/apidocs.swagger.yaml
+4
-4
memo_service.proto
proto/api/v1/memo_service.proto
+3
-3
user_service.proto
proto/api/v1/user_service.proto
+1
-1
activity_service.pb.gw.go
proto/gen/api/v1/activity_service.pb.gw.go
+3
-3
auth_service.pb.gw.go
proto/gen/api/v1/auth_service.pb.gw.go
+3
-3
idp_service.pb.gw.go
proto/gen/api/v1/idp_service.pb.gw.go
+3
-3
inbox_service.pb.gw.go
proto/gen/api/v1/inbox_service.pb.gw.go
+3
-3
markdown_service.pb.gw.go
proto/gen/api/v1/markdown_service.pb.gw.go
+3
-3
memo_service.pb.go
proto/gen/api/v1/memo_service.pb.go
+3
-3
memo_service.pb.gw.go
proto/gen/api/v1/memo_service.pb.gw.go
+3
-3
resource_service.pb.gw.go
proto/gen/api/v1/resource_service.pb.gw.go
+3
-3
user_service.pb.go
proto/gen/api/v1/user_service.pb.go
+1
-1
user_service.pb.gw.go
proto/gen/api/v1/user_service.pb.gw.go
+3
-3
webhook_service.pb.gw.go
proto/gen/api/v1/webhook_service.pb.gw.go
+3
-3
workspace_service.pb.gw.go
proto/gen/api/v1/workspace_service.pb.gw.go
+3
-3
workspace_setting_service.pb.gw.go
proto/gen/api/v1/workspace_setting_service.pb.gw.go
+3
-3
No files found.
docs/apidocs.swagger.yaml
View file @
f54b05a5
...
@@ -310,7 +310,7 @@ paths:
...
@@ -310,7 +310,7 @@ paths:
-
name
:
filter
-
name
:
filter
description
:
|-
description
:
|-
Filter is used to filter memos returned in the list.
Filter is used to filter memos returned in the list.
Format: "creator ==
users/{uid}
&& visibilities == ['PUBLIC', 'PROTECTED']"
Format: "creator ==
'users/{uid}'
&& visibilities == ['PUBLIC', 'PROTECTED']"
in: query
in: query
required: false
required: false
type: string
type: string
...
@@ -410,7 +410,7 @@ paths:
...
@@ -410,7 +410,7 @@ paths:
-
name
:
filter
-
name
:
filter
description
:
|-
description
:
|-
Filter is used to filter memos returned.
Filter is used to filter memos returned.
Format: "creator ==
users/{uid}
&& visibilities == ['PUBLIC', 'PROTECTED']"
Format: "creator ==
'users/{uid}'
&& visibilities == ['PUBLIC', 'PROTECTED']"
in: query
in: query
required: false
required: false
type: string
type: string
...
@@ -545,7 +545,7 @@ paths:
...
@@ -545,7 +545,7 @@ paths:
-
name
:
filter
-
name
:
filter
description
:
|-
description
:
|-
Filter is used to filter users returned in the list.
Filter is used to filter users returned in the list.
Format: "username ==
frank
"
Format: "username ==
'frank'
"
in: query
in: query
required: false
required: false
type: string
type: string
...
@@ -1517,7 +1517,7 @@ paths:
...
@@ -1517,7 +1517,7 @@ paths:
-
name
:
filter
-
name
:
filter
description
:
|-
description
:
|-
Filter is used to filter memos.
Filter is used to filter memos.
Format: "creator ==
users/{uid}
&& visibilities == ['PUBLIC', 'PROTECTED']"
Format: "creator ==
'users/{uid}'
&& visibilities == ['PUBLIC', 'PROTECTED']"
in: query
in: query
required: false
required: false
type: string
type: string
...
...
proto/api/v1/memo_service.proto
View file @
f54b05a5
...
@@ -205,7 +205,7 @@ message ListMemosRequest {
...
@@ -205,7 +205,7 @@ message ListMemosRequest {
string
page_token
=
2
;
string
page_token
=
2
;
// Filter is used to filter memos returned in the list.
// Filter is used to filter memos returned in the list.
// Format: "creator ==
users/{uid}
&& visibilities == ['PUBLIC', 'PROTECTED']"
// Format: "creator ==
'users/{uid}'
&& visibilities == ['PUBLIC', 'PROTECTED']"
string
filter
=
3
;
string
filter
=
3
;
}
}
...
@@ -219,7 +219,7 @@ message ListMemosResponse {
...
@@ -219,7 +219,7 @@ message ListMemosResponse {
message
SearchMemosRequest
{
message
SearchMemosRequest
{
// Filter is used to filter memos returned.
// Filter is used to filter memos returned.
// Format: "creator ==
users/{uid}
&& visibilities == ['PUBLIC', 'PROTECTED']"
// Format: "creator ==
'users/{uid}'
&& visibilities == ['PUBLIC', 'PROTECTED']"
string
filter
=
1
;
string
filter
=
1
;
}
}
...
@@ -266,7 +266,7 @@ message ListMemoTagsRequest {
...
@@ -266,7 +266,7 @@ message ListMemoTagsRequest {
string
parent
=
1
;
string
parent
=
1
;
// Filter is used to filter memos.
// Filter is used to filter memos.
// Format: "creator ==
users/{uid}
&& visibilities == ['PUBLIC', 'PROTECTED']"
// Format: "creator ==
'users/{uid}'
&& visibilities == ['PUBLIC', 'PROTECTED']"
string
filter
=
2
;
string
filter
=
2
;
}
}
...
...
proto/api/v1/user_service.proto
View file @
f54b05a5
...
@@ -129,7 +129,7 @@ message ListUsersResponse {
...
@@ -129,7 +129,7 @@ message ListUsersResponse {
message
SearchUsersRequest
{
message
SearchUsersRequest
{
// Filter is used to filter users returned in the list.
// Filter is used to filter users returned in the list.
// Format: "username ==
frank
"
// Format: "username ==
'frank'
"
string
filter
=
1
;
string
filter
=
1
;
}
}
...
...
proto/gen/api/v1/activity_service.pb.gw.go
View file @
f54b05a5
...
@@ -120,21 +120,21 @@ func RegisterActivityServiceHandlerServer(ctx context.Context, mux *runtime.Serv
...
@@ -120,21 +120,21 @@ func RegisterActivityServiceHandlerServer(ctx context.Context, mux *runtime.Serv
// RegisterActivityServiceHandlerFromEndpoint is same as RegisterActivityServiceHandler but
// RegisterActivityServiceHandlerFromEndpoint is same as RegisterActivityServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterActivityServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterActivityServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/auth_service.pb.gw.go
View file @
f54b05a5
...
@@ -312,21 +312,21 @@ func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
...
@@ -312,21 +312,21 @@ func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
// RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but
// RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterAuthServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterAuthServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/idp_service.pb.gw.go
View file @
f54b05a5
...
@@ -416,21 +416,21 @@ func RegisterIdentityProviderServiceHandlerServer(ctx context.Context, mux *runt
...
@@ -416,21 +416,21 @@ func RegisterIdentityProviderServiceHandlerServer(ctx context.Context, mux *runt
// RegisterIdentityProviderServiceHandlerFromEndpoint is same as RegisterIdentityProviderServiceHandler but
// RegisterIdentityProviderServiceHandlerFromEndpoint is same as RegisterIdentityProviderServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterIdentityProviderServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterIdentityProviderServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/inbox_service.pb.gw.go
View file @
f54b05a5
...
@@ -306,21 +306,21 @@ func RegisterInboxServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
...
@@ -306,21 +306,21 @@ func RegisterInboxServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
// RegisterInboxServiceHandlerFromEndpoint is same as RegisterInboxServiceHandler but
// RegisterInboxServiceHandlerFromEndpoint is same as RegisterInboxServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterInboxServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterInboxServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/markdown_service.pb.gw.go
View file @
f54b05a5
...
@@ -206,21 +206,21 @@ func RegisterMarkdownServiceHandlerServer(ctx context.Context, mux *runtime.Serv
...
@@ -206,21 +206,21 @@ func RegisterMarkdownServiceHandlerServer(ctx context.Context, mux *runtime.Serv
// RegisterMarkdownServiceHandlerFromEndpoint is same as RegisterMarkdownServiceHandler but
// RegisterMarkdownServiceHandlerFromEndpoint is same as RegisterMarkdownServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterMarkdownServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterMarkdownServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/memo_service.pb.go
View file @
f54b05a5
...
@@ -315,7 +315,7 @@ type ListMemosRequest struct {
...
@@ -315,7 +315,7 @@ type ListMemosRequest struct {
// Provide this to retrieve the subsequent page.
// Provide this to retrieve the subsequent page.
PageToken
string
`protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
PageToken
string
`protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Filter is used to filter memos returned in the list.
// Filter is used to filter memos returned in the list.
// Format: "creator ==
users/{uid}
&& visibilities == ['PUBLIC', 'PROTECTED']"
// Format: "creator ==
'users/{uid}'
&& visibilities == ['PUBLIC', 'PROTECTED']"
Filter
string
`protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
Filter
string
`protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
}
}
...
@@ -435,7 +435,7 @@ type SearchMemosRequest struct {
...
@@ -435,7 +435,7 @@ type SearchMemosRequest struct {
unknownFields
protoimpl
.
UnknownFields
unknownFields
protoimpl
.
UnknownFields
// Filter is used to filter memos returned.
// Filter is used to filter memos returned.
// Format: "creator ==
users/{uid}
&& visibilities == ['PUBLIC', 'PROTECTED']"
// Format: "creator ==
'users/{uid}'
&& visibilities == ['PUBLIC', 'PROTECTED']"
Filter
string
`protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
Filter
string
`protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
}
}
...
@@ -831,7 +831,7 @@ type ListMemoTagsRequest struct {
...
@@ -831,7 +831,7 @@ type ListMemoTagsRequest struct {
// Format: memos/{id}. Use "memos/-" to list all tags.
// Format: memos/{id}. Use "memos/-" to list all tags.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Filter is used to filter memos.
// Filter is used to filter memos.
// Format: "creator ==
users/{uid}
&& visibilities == ['PUBLIC', 'PROTECTED']"
// Format: "creator ==
'users/{uid}'
&& visibilities == ['PUBLIC', 'PROTECTED']"
Filter
string
`protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
Filter
string
`protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
}
}
...
...
proto/gen/api/v1/memo_service.pb.gw.go
View file @
f54b05a5
...
@@ -1712,21 +1712,21 @@ func RegisterMemoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
...
@@ -1712,21 +1712,21 @@ func RegisterMemoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
// RegisterMemoServiceHandlerFromEndpoint is same as RegisterMemoServiceHandler but
// RegisterMemoServiceHandlerFromEndpoint is same as RegisterMemoServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterMemoServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterMemoServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/resource_service.pb.gw.go
View file @
f54b05a5
...
@@ -554,21 +554,21 @@ func RegisterResourceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
...
@@ -554,21 +554,21 @@ func RegisterResourceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
// RegisterResourceServiceHandlerFromEndpoint is same as RegisterResourceServiceHandler but
// RegisterResourceServiceHandlerFromEndpoint is same as RegisterResourceServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterResourceServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterResourceServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/user_service.pb.go
View file @
f54b05a5
...
@@ -306,7 +306,7 @@ type SearchUsersRequest struct {
...
@@ -306,7 +306,7 @@ type SearchUsersRequest struct {
unknownFields
protoimpl
.
UnknownFields
unknownFields
protoimpl
.
UnknownFields
// Filter is used to filter users returned in the list.
// Filter is used to filter users returned in the list.
// Format: "username ==
frank
"
// Format: "username ==
'frank'
"
Filter
string
`protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
Filter
string
`protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
}
}
...
...
proto/gen/api/v1/user_service.pb.gw.go
View file @
f54b05a5
...
@@ -1033,21 +1033,21 @@ func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
...
@@ -1033,21 +1033,21 @@ func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
// RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but
// RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterUserServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterUserServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/webhook_service.pb.gw.go
View file @
f54b05a5
...
@@ -434,21 +434,21 @@ func RegisterWebhookServiceHandlerServer(ctx context.Context, mux *runtime.Serve
...
@@ -434,21 +434,21 @@ func RegisterWebhookServiceHandlerServer(ctx context.Context, mux *runtime.Serve
// RegisterWebhookServiceHandlerFromEndpoint is same as RegisterWebhookServiceHandler but
// RegisterWebhookServiceHandlerFromEndpoint is same as RegisterWebhookServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterWebhookServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterWebhookServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/workspace_service.pb.gw.go
View file @
f54b05a5
...
@@ -86,21 +86,21 @@ func RegisterWorkspaceServiceHandlerServer(ctx context.Context, mux *runtime.Ser
...
@@ -86,21 +86,21 @@ func RegisterWorkspaceServiceHandlerServer(ctx context.Context, mux *runtime.Ser
// RegisterWorkspaceServiceHandlerFromEndpoint is same as RegisterWorkspaceServiceHandler but
// RegisterWorkspaceServiceHandlerFromEndpoint is same as RegisterWorkspaceServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterWorkspaceServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterWorkspaceServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
proto/gen/api/v1/workspace_setting_service.pb.gw.go
View file @
f54b05a5
...
@@ -205,21 +205,21 @@ func RegisterWorkspaceSettingServiceHandlerServer(ctx context.Context, mux *runt
...
@@ -205,21 +205,21 @@ func RegisterWorkspaceSettingServiceHandlerServer(ctx context.Context, mux *runt
// RegisterWorkspaceSettingServiceHandlerFromEndpoint is same as RegisterWorkspaceSettingServiceHandler but
// RegisterWorkspaceSettingServiceHandlerFromEndpoint is same as RegisterWorkspaceSettingServiceHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func
RegisterWorkspaceSettingServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
func
RegisterWorkspaceSettingServiceHandlerFromEndpoint
(
ctx
context
.
Context
,
mux
*
runtime
.
ServeMux
,
endpoint
string
,
opts
[]
grpc
.
DialOption
)
(
err
error
)
{
conn
,
err
:=
grpc
.
DialContext
(
ctx
,
endpoint
,
opts
...
)
conn
,
err
:=
grpc
.
NewClient
(
endpoint
,
opts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
func
()
{
defer
func
()
{
if
err
!=
nil
{
if
err
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
return
return
}
}
go
func
()
{
go
func
()
{
<-
ctx
.
Done
()
<-
ctx
.
Done
()
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
if
cerr
:=
conn
.
Close
();
cerr
!=
nil
{
grpclog
.
Info
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
grpclog
.
Error
f
(
"Failed to close conn to %s: %v"
,
endpoint
,
cerr
)
}
}
}()
}()
}()
}()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment