From a83df01f94b2b671945449a60f3d84376ecf94cb Mon Sep 17 00:00:00 2001 From: aryanmehrotra Date: Mon, 29 Jun 2026 14:27:29 +0530 Subject: [PATCH] feat(pkg): add go-import pages for cloudsql, influxdb, and kv-store/dynamodb These three datasource modules were tagged and available via go get but missing the vanity import redirect pages, causing go get to return 404 and fall back to the root gofr.dev module. Also adds CloudSQL to the datasource navigation. --- src/app/pkg/gofr/datasource/cloudsql/layout.jsx | 10 ++++++++++ src/app/pkg/gofr/datasource/cloudsql/page.jsx | 11 +++++++++++ src/app/pkg/gofr/datasource/influxdb/layout.jsx | 10 ++++++++++ src/app/pkg/gofr/datasource/influxdb/page.jsx | 11 +++++++++++ .../pkg/gofr/datasource/kv-store/dynamodb/layout.jsx | 10 ++++++++++ .../pkg/gofr/datasource/kv-store/dynamodb/page.jsx | 11 +++++++++++ src/lib/navigation.js | 5 +++++ 7 files changed, 68 insertions(+) create mode 100644 src/app/pkg/gofr/datasource/cloudsql/layout.jsx create mode 100644 src/app/pkg/gofr/datasource/cloudsql/page.jsx create mode 100644 src/app/pkg/gofr/datasource/influxdb/layout.jsx create mode 100644 src/app/pkg/gofr/datasource/influxdb/page.jsx create mode 100644 src/app/pkg/gofr/datasource/kv-store/dynamodb/layout.jsx create mode 100644 src/app/pkg/gofr/datasource/kv-store/dynamodb/page.jsx diff --git a/src/app/pkg/gofr/datasource/cloudsql/layout.jsx b/src/app/pkg/gofr/datasource/cloudsql/layout.jsx new file mode 100644 index 0000000..e8e8598 --- /dev/null +++ b/src/app/pkg/gofr/datasource/cloudsql/layout.jsx @@ -0,0 +1,10 @@ +export const metadata = { + other: { + 'go-import': 'gofr.dev git https://github.com/gofr-dev/gofr', + 'go-source': 'gofr.dev https://github.com/gofr-dev/gofr https://github.com/gofr-dev/gofr/tree/main{/dir} https://github.com/gofr-dev/gofr/blob/main{/dir}/{file}#L{line}' + }, +} + +export default function RootLayout({ children }) { + return children +} diff --git a/src/app/pkg/gofr/datasource/cloudsql/page.jsx b/src/app/pkg/gofr/datasource/cloudsql/page.jsx new file mode 100644 index 0000000..ac9e617 --- /dev/null +++ b/src/app/pkg/gofr/datasource/cloudsql/page.jsx @@ -0,0 +1,11 @@ +import { PkgRedirect } from '@/components/PkgRedirect' + + +export const metadata = { + title: 'gofr/datasource/cloudsql — GoFr Go Package', + description: 'Go module path for gofr/datasource/cloudsql. This redirect-only page sends visitors to the GoFr documentation for setup, configuration, and usage examples.', +} + +export default function Page() { + return +} diff --git a/src/app/pkg/gofr/datasource/influxdb/layout.jsx b/src/app/pkg/gofr/datasource/influxdb/layout.jsx new file mode 100644 index 0000000..e8e8598 --- /dev/null +++ b/src/app/pkg/gofr/datasource/influxdb/layout.jsx @@ -0,0 +1,10 @@ +export const metadata = { + other: { + 'go-import': 'gofr.dev git https://github.com/gofr-dev/gofr', + 'go-source': 'gofr.dev https://github.com/gofr-dev/gofr https://github.com/gofr-dev/gofr/tree/main{/dir} https://github.com/gofr-dev/gofr/blob/main{/dir}/{file}#L{line}' + }, +} + +export default function RootLayout({ children }) { + return children +} diff --git a/src/app/pkg/gofr/datasource/influxdb/page.jsx b/src/app/pkg/gofr/datasource/influxdb/page.jsx new file mode 100644 index 0000000..7768a14 --- /dev/null +++ b/src/app/pkg/gofr/datasource/influxdb/page.jsx @@ -0,0 +1,11 @@ +import { PkgRedirect } from '@/components/PkgRedirect' + + +export const metadata = { + title: 'gofr/datasource/influxdb — GoFr Go Package', + description: 'Go module path for gofr/datasource/influxdb. This redirect-only page sends visitors to the GoFr documentation for setup, configuration, and usage examples.', +} + +export default function Page() { + return +} diff --git a/src/app/pkg/gofr/datasource/kv-store/dynamodb/layout.jsx b/src/app/pkg/gofr/datasource/kv-store/dynamodb/layout.jsx new file mode 100644 index 0000000..e8e8598 --- /dev/null +++ b/src/app/pkg/gofr/datasource/kv-store/dynamodb/layout.jsx @@ -0,0 +1,10 @@ +export const metadata = { + other: { + 'go-import': 'gofr.dev git https://github.com/gofr-dev/gofr', + 'go-source': 'gofr.dev https://github.com/gofr-dev/gofr https://github.com/gofr-dev/gofr/tree/main{/dir} https://github.com/gofr-dev/gofr/blob/main{/dir}/{file}#L{line}' + }, +} + +export default function RootLayout({ children }) { + return children +} diff --git a/src/app/pkg/gofr/datasource/kv-store/dynamodb/page.jsx b/src/app/pkg/gofr/datasource/kv-store/dynamodb/page.jsx new file mode 100644 index 0000000..b9da170 --- /dev/null +++ b/src/app/pkg/gofr/datasource/kv-store/dynamodb/page.jsx @@ -0,0 +1,11 @@ +import { PkgRedirect } from '@/components/PkgRedirect' + + +export const metadata = { + title: 'gofr/datasource/kv-store/dynamodb — GoFr Go Package', + description: 'Go module path for gofr/datasource/kv-store/dynamodb. Redirects to the GoFr documentation for setup, configuration, and usage examples.', +} + +export default function Page() { + return +} diff --git a/src/lib/navigation.js b/src/lib/navigation.js index f46b104..6cfbeba 100644 --- a/src/lib/navigation.js +++ b/src/lib/navigation.js @@ -295,6 +295,11 @@ export const navigation = [ href: "/docs/datasources/clickhouse", desc: "Learn how to connect to and interact with clickhouse database in GoFr." }, + { + title: "Cloud SQL", + href: "/docs/datasources/cloudsql", + desc: "Learn how to connect to and interact with Google Cloud SQL in GoFr using IAM authentication." + }, { title: "CockroachDB", href: "/docs/datasources/cockroachdb",