Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: tweak comments
Stevenf54b05a52181
diff --git a/docs/apidocs.swagger.yaml b/docs/apidocs.swagger.yamlindex 8907e0f61..cda21f8a0 100644--- a/docs/apidocs.swagger.yaml+++ b/docs/apidocs.swagger.yaml@@ -310,7 +310,7 @@ paths:- name: filterdescription: |-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: queryrequired: falsetype: string@@ -410,7 +410,7 @@ paths:- name: filterdescription: |-Filter is used to filter memos returned.- Format: "creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']"+ Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"in: queryrequired: falsetype: string@@ -545,7 +545,7 @@ paths:- name: filterdescription: |-Filter is used to filter users returned in the list.- Format: "username == frank"+ Format: "username == 'frank'"in: queryrequired: falsetype: string@@ -1517,7 +1517,7 @@ paths:- name: filterdescription: |-Filter is used to filter memos.- Format: "creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']"+ Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"in: queryrequired: falsetype: stringdiff --git a/proto/api/v1/memo_service.proto b/proto/api/v1/memo_service.protoindex 9b7bd8b57..52e862c44 100644--- a/proto/api/v1/memo_service.proto+++ b/proto/api/v1/memo_service.proto@@ -205,7 +205,7 @@ message ListMemosRequest {string page_token = 2;// 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;}@@ -219,7 +219,7 @@ message ListMemosResponse {message SearchMemosRequest {// Filter is used to filter memos returned.- // Format: "creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']"+ // Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"string filter = 1;}@@ -266,7 +266,7 @@ message ListMemoTagsRequest {string parent = 1;// Filter is used to filter memos.- // Format: "creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']"+ // Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"string filter = 2;}diff --git a/proto/api/v1/user_service.proto b/proto/api/v1/user_service.protoindex b97623113..80fdf98a5 100644--- a/proto/api/v1/user_service.proto+++ b/proto/api/v1/user_service.proto@@ -129,7 +129,7 @@ message ListUsersResponse {message SearchUsersRequest {// Filter is used to filter users returned in the list.- // Format: "username == frank"+ // Format: "username == 'frank'"string filter = 1;}diff --git a/proto/gen/api/v1/activity_service.pb.gw.go b/proto/gen/api/v1/activity_service.pb.gw.goindex 4596fa9df..df2d3b812 100644--- a/proto/gen/api/v1/activity_service.pb.gw.go+++ b/proto/gen/api/v1/activity_service.pb.gw.go@@ -120,21 +120,21 @@ func RegisterActivityServiceHandlerServer(ctx context.Context, mux *runtime.Serv// RegisterActivityServiceHandlerFromEndpoint is same as RegisterActivityServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/auth_service.pb.gw.go b/proto/gen/api/v1/auth_service.pb.gw.goindex 417c52c90..5690b32fa 100644--- a/proto/gen/api/v1/auth_service.pb.gw.go+++ b/proto/gen/api/v1/auth_service.pb.gw.go@@ -312,21 +312,21 @@ func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux// RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/idp_service.pb.gw.go b/proto/gen/api/v1/idp_service.pb.gw.goindex 2fdd8b91d..973dd0de1 100644--- a/proto/gen/api/v1/idp_service.pb.gw.go+++ b/proto/gen/api/v1/idp_service.pb.gw.go@@ -416,21 +416,21 @@ func RegisterIdentityProviderServiceHandlerServer(ctx context.Context, mux *runt// RegisterIdentityProviderServiceHandlerFromEndpoint is same as RegisterIdentityProviderServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/inbox_service.pb.gw.go b/proto/gen/api/v1/inbox_service.pb.gw.goindex b0ab788ff..51e0b3149 100644--- a/proto/gen/api/v1/inbox_service.pb.gw.go+++ b/proto/gen/api/v1/inbox_service.pb.gw.go@@ -306,21 +306,21 @@ func RegisterInboxServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu// RegisterInboxServiceHandlerFromEndpoint is same as RegisterInboxServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/markdown_service.pb.gw.go b/proto/gen/api/v1/markdown_service.pb.gw.goindex ee5f04e27..52e66b87a 100644--- a/proto/gen/api/v1/markdown_service.pb.gw.go+++ b/proto/gen/api/v1/markdown_service.pb.gw.go@@ -206,21 +206,21 @@ func RegisterMarkdownServiceHandlerServer(ctx context.Context, mux *runtime.Serv// RegisterMarkdownServiceHandlerFromEndpoint is same as RegisterMarkdownServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/memo_service.pb.go b/proto/gen/api/v1/memo_service.pb.goindex 7c4d650fb..c41f84892 100644--- a/proto/gen/api/v1/memo_service.pb.go+++ b/proto/gen/api/v1/memo_service.pb.go@@ -315,7 +315,7 @@ type ListMemosRequest struct {// Provide this to retrieve the subsequent page.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.- // 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"`}@@ -435,7 +435,7 @@ type SearchMemosRequest struct {unknownFields protoimpl.UnknownFields// 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"`}@@ -831,7 +831,7 @@ type ListMemoTagsRequest struct {// Format: memos/{id}. Use "memos/-" to list all tags.Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`// 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"`}diff --git a/proto/gen/api/v1/memo_service.pb.gw.go b/proto/gen/api/v1/memo_service.pb.gw.goindex 4a3b4ee8d..0385766be 100644--- a/proto/gen/api/v1/memo_service.pb.gw.go+++ b/proto/gen/api/v1/memo_service.pb.gw.go@@ -1712,21 +1712,21 @@ func RegisterMemoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux// RegisterMemoServiceHandlerFromEndpoint is same as RegisterMemoServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/resource_service.pb.gw.go b/proto/gen/api/v1/resource_service.pb.gw.goindex 4e0182f10..e6873ef16 100644--- a/proto/gen/api/v1/resource_service.pb.gw.go+++ b/proto/gen/api/v1/resource_service.pb.gw.go@@ -554,21 +554,21 @@ func RegisterResourceServiceHandlerServer(ctx context.Context, mux *runtime.Serv// RegisterResourceServiceHandlerFromEndpoint is same as RegisterResourceServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/user_service.pb.go b/proto/gen/api/v1/user_service.pb.goindex 8cebfcb87..c1fa7ff00 100644--- a/proto/gen/api/v1/user_service.pb.go+++ b/proto/gen/api/v1/user_service.pb.go@@ -306,7 +306,7 @@ type SearchUsersRequest struct {unknownFields protoimpl.UnknownFields// 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"`}diff --git a/proto/gen/api/v1/user_service.pb.gw.go b/proto/gen/api/v1/user_service.pb.gw.goindex 9088bb29e..89e6d6d3e 100644--- a/proto/gen/api/v1/user_service.pb.gw.go+++ b/proto/gen/api/v1/user_service.pb.gw.go@@ -1033,21 +1033,21 @@ func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux// RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/webhook_service.pb.gw.go b/proto/gen/api/v1/webhook_service.pb.gw.goindex b1728d35c..bd8b960fe 100644--- a/proto/gen/api/v1/webhook_service.pb.gw.go+++ b/proto/gen/api/v1/webhook_service.pb.gw.go@@ -434,21 +434,21 @@ func RegisterWebhookServiceHandlerServer(ctx context.Context, mux *runtime.Serve// RegisterWebhookServiceHandlerFromEndpoint is same as RegisterWebhookServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/workspace_service.pb.gw.go b/proto/gen/api/v1/workspace_service.pb.gw.goindex 5df16678a..96a80d295 100644--- a/proto/gen/api/v1/workspace_service.pb.gw.go+++ b/proto/gen/api/v1/workspace_service.pb.gw.go@@ -86,21 +86,21 @@ func RegisterWorkspaceServiceHandlerServer(ctx context.Context, mux *runtime.Ser// RegisterWorkspaceServiceHandlerFromEndpoint is same as RegisterWorkspaceServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()diff --git a/proto/gen/api/v1/workspace_setting_service.pb.gw.go b/proto/gen/api/v1/workspace_setting_service.pb.gw.goindex fea94724d..9df10d8f0 100644--- a/proto/gen/api/v1/workspace_setting_service.pb.gw.go+++ b/proto/gen/api/v1/workspace_setting_service.pb.gw.go@@ -205,21 +205,21 @@ func RegisterWorkspaceSettingServiceHandlerServer(ctx context.Context, mux *runt// RegisterWorkspaceSettingServiceHandlerFromEndpoint is same as RegisterWorkspaceSettingServiceHandler but// 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) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)+ conn, err := grpc.NewClient(endpoint, opts...)if err != nil {return err}defer func() {if err != nil {if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}return}go func() {<-ctx.Done()if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)}}()}()