Skip to content

Commit edd3ced

Browse files
authored
refactor: migrate to connect-rpc (#5338)
1 parent 8af8b9d commit edd3ced

File tree

151 files changed

+14555
-27932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+14555
-27932
lines changed

go.mod

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/usememos/memos
33
go 1.25
44

55
require (
6+
connectrpc.com/connect v1.19.1
67
github.com/aws/aws-sdk-go-v2 v1.39.2
78
github.com/aws/aws-sdk-go-v2/config v1.31.12
89
github.com/aws/aws-sdk-go-v2/credentials v1.18.16
@@ -14,7 +15,6 @@ require (
1415
github.com/gorilla/feeds v1.2.0
1516
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
1617
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2
17-
github.com/improbable-eng/grpc-web v0.15.0
1818
github.com/joho/godotenv v1.5.1
1919
github.com/labstack/echo/v4 v4.13.4
2020
github.com/lib/pq v1.10.9
@@ -38,8 +38,6 @@ require (
3838
cel.dev/expr v0.24.0 // indirect
3939
filippo.io/edwards25519 v1.1.0 // indirect
4040
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
41-
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
42-
github.com/desertbit/timer v1.0.1 // indirect
4341
github.com/dustin/go-humanize v1.0.1 // indirect
4442
github.com/fsnotify/fsnotify v1.8.0 // indirect
4543
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
@@ -48,7 +46,6 @@ require (
4846
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
4947
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
5048
github.com/rogpeppe/go-internal v1.11.0 // indirect
51-
github.com/rs/cors v1.11.1 // indirect
5249
github.com/sagikazarmark/locafero v0.7.0 // indirect
5350
github.com/sourcegraph/conc v0.3.0 // indirect
5451
github.com/spf13/afero v1.12.0 // indirect
@@ -64,7 +61,6 @@ require (
6461
modernc.org/libc v1.66.8 // indirect
6562
modernc.org/mathutil v1.7.1 // indirect
6663
modernc.org/memory v1.11.0 // indirect
67-
nhooyr.io/websocket v1.8.17 // indirect
6864
)
6965

7066
require (

go.sum

Lines changed: 2 additions & 381 deletions
Large diffs are not rendered by default.

proto/buf.gen.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,33 @@ managed:
77
override:
88
- file_option: go_package_prefix
99
value: github.com/usememos/memos/proto/gen
10+
inputs:
11+
- directory: .
12+
- module: buf.build/googleapis/googleapis
13+
paths:
14+
- google/api/annotations.proto
15+
- google/api/client.proto
16+
- google/api/field_behavior.proto
17+
- google/api/http.proto
18+
- google/api/resource.proto
1019
plugins:
1120
- remote: buf.build/protocolbuffers/go
1221
out: gen
1322
opt: paths=source_relative
1423
- remote: buf.build/grpc/go
1524
out: gen
1625
opt: paths=source_relative
26+
- remote: buf.build/connectrpc/go
27+
out: gen
28+
opt: paths=source_relative
1729
- remote: buf.build/grpc-ecosystem/gateway
1830
out: gen
1931
opt: paths=source_relative
2032
- remote: buf.build/community/google-gnostic-openapi
2133
out: gen
2234
opt: paths=source_relative,enum_type=string
23-
- remote: buf.build/community/stephenh-ts-proto
35+
- remote: buf.build/bufbuild/es
2436
out: ../web/src/types/proto
2537
opt:
26-
- env=browser
27-
- useOptionals=messages
28-
- outputServices=generic-definitions
29-
- outputJsonMethods=false
30-
- useExactTypes=false
31-
- esModuleInterop=true
32-
- stringEnums=true
38+
- target=ts
39+
include_imports: true

proto/gen/api/v1/apiv1connect/activity_service.connect.go

Lines changed: 142 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)