8000 upgrade relay version by molon · Pull Request #602 · qor5/admin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

upgrade relay version #602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions docs/docsrc/examples/examples_presets/listing.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,16 @@ func PresetsListingCustomizationFields(b *presets.Builder, db *gorm.DB) (
return
})

aesCursorMiddleware := cursor.AES[any](
[]byte("0123456789abcdef0123456789abcdef"), // 32bytes aes256
)
gcm, err := cursor.NewGCM([]byte("0123456789abcdef0123456789abcdef"))
if err != nil {
panic(err)
}
gcmMiddleware := cursor.GCM[any](gcm)
cl.RelayPagination(
gorm2op.KeysetBasedPagination(true, aesCursorMiddleware),
gorm2op.KeysetBasedPagination(true, gcmMiddleware),
)
comp.Listing().RelayPagination(
gorm2op.KeysetBasedPagination(true, aesCursorMiddleware),
gorm2op.KeysetBasedPagination(true, gcmMiddleware),
)

return
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ require (
github.com/theplant/gofixtures v1.1.3
github.com/theplant/htmlgo v1.0.3
github.com/theplant/osenv v0.0.2
github.com/theplant/relay v0.0.0-20240925143550-df827ef2f86f
github.com/theplant/relay v0.1.1
github.com/theplant/sliceutils v0.0.0-20200406042209-89153d988eb1
github.com/theplant/testenv v0.0.1
github.com/theplant/testingutils v0.0.2
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ github.com/theplant/osenv v0.0.2 h1:SI2I/gLQQj5pQgpBQ8YKx/u4i7KE7yG2Gmr/ZORuxn8=
github.com/theplant/osenv v0.0.2/go.mod h1:gUdlLzvmJb/dyBmXk+qEWiIhAN1tmVhYktzK1HHEz3c=
github.com/theplant/relay v0.0.0-20240925143550-df827ef2f86f h1:W5FXgfj6ZpGfXLK5aqERJ/g67DfUz0+CZdj/MLE1WnQ=
github.com/theplant/relay v0.0.0-20240925143550-df827ef2f86f/go.mod h1:pF6+UcAs0UEbZ4rnjB8/upjZD8y8xA2iQwqkffkKE2g=
github.com/theplant/relay v0.1.1-0.20240925170047-ffdb230eda6b h1:rRonWmenM0ynNZz9QiJLB+6jioj395OfKXcBOPrDB+s=
github.com/theplant/relay v0.1.1-0.20240925170047-ffdb230eda6b/go.mod h1:pF6+UcAs0UEbZ4rnjB8/upjZD8y8xA2iQwqkffkKE2g=
github.com/theplant/relay v0.1.1 h1:cAyAxcdt6B/xS+DUUz4Q/MJ3xiHt5oBR8jcxDWOIeWs=
github.com/theplant/relay v0.1.1/go.mod h1:pF6+UcAs0UEbZ4rnjB8/upjZD8y8xA2iQwqkffkKE2g=
github.com/theplant/sliceutils v0.0.0-20200406042209-89153d988eb1 h1:EP+XW/tiUH8Cr1MSu7wKhpUnt4QzbVv5J5CoB6R32S4=
github.com/theplant/sliceutils v0.0.0-20200406042209-89153d988eb1/go.mod h1:+y978w//UsVK85wVF9XJey9qTGDv+4kQc8v3Mf/ZjmE=
github.com/theplant/testenv v0.0.1 h1:L9ygUPZDrHwRoMDfopXuq1+szEs05pYUwcFaZtSZ4X0=
Expand Down
Loading
0