An opinionated GoLang framework for accelerated microservice development. Built in support for databases and observability.
126 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docs/datasources/scylladb/page.md | 21 | with ScyllaDB. Any driver implementation that adheres to this interface can be integrated into GoFr using the |
| LOW | docs/datasources/opentsdb/page.md | 21 | Implementations adhering to the `OpenTSDB` interface can be registered with `app.AddOpenTSDB()`, |
| LOW | docs/datasources/opentsdb/page.md | 41 | // |
| LOW | docs/datasources/opentsdb/page.md | 61 | // - res: A pointer to QueryLastResponse, where the server's response will be stored. |
| LOW | docs/datasources/opentsdb/page.md | 81 | // Parameters: |
| LOW | examples/http-server/main_test.go | 1 | package main |
| LOW | examples/using-http-auth-middleware/ReadMe.md | 41 | a := gofr.New() |
| LOW | examples/using-http-auth-middleware/main_test.go | 61 | assert.Equal(t, http.StatusOK, resp.StatusCode) |
| LOW | examples/using-http-auth-middleware/main_test.go | 81 | // serverConfigs := testutil.NewServerConfigs(t) |
| LOW | examples/using-http-auth-middleware/main_test.go | 101 | // |
| LOW | examples/using-http-auth-middleware/main_test.go | 121 | // setupBasicAuth(app) |
| LOW | examples/using-http-auth-middleware/main_test.go | 141 | // resp, err := netClient.Do(req) |
| LOW | .github/workflows/website-prod.yml | 81 | TAG=${GITHUB_REF#refs/tags/} |
| LOW | .qlty/qlty.toml | 1 | # This file was automatically generated by `qlty init`. |
| LOW | pkg/gofr/handler.go | 101 | // serveInline runs the user handler in the calling goroutine. Used when |
| LOW | pkg/gofr/gofr.go | 241 | options = append([]service.Options{service.WithAttributes(map[string]string{"name": serviceName})}, options...) |
| LOW | pkg/gofr/gofr.go | 421 | // The hook function receives a Context that provides access to the application's |
| LOW | pkg/gofr/rbac.go | 1 | package gofr |
| LOW | pkg/gofr/http_server_test.go | 241 | |
| LOW | pkg/gofr/metrics/register.go | 161 | // |
| LOW | pkg/gofr/metrics/register.go | 181 | } |
| LOW | pkg/gofr/metrics/exporters/exporter.go | 41 | // |
| LOW | pkg/gofr/metrics/exporters/exporter.go | 61 | // |
| LOW | pkg/gofr/datasource/clickhouse/clickhouse.go | 141 | // Example Usages: |
| LOW | pkg/gofr/datasource/clickhouse/interface.go | 1 | // Package clickhouse provides functionalities for interacting with a Clickhouse database. |
| LOW | pkg/gofr/datasource/clickhouse/interface.go | 21 | // |
| LOW | pkg/gofr/datasource/clickhouse/interface.go | 41 | // |
| LOW | pkg/gofr/datasource/file/interface.go | 81 | |
| LOW | pkg/gofr/datasource/file/row_reader.go | 21 | logger datasource.Logger |
| LOW | pkg/gofr/datasource/file/common_fs.go | 21 | errChDirNotSupported = errors.New("changing directory is not supported in cloud storage") |
| LOW | pkg/gofr/datasource/file/s3/fs.go | 261 | size: *res.ContentLength, |
| LOW | pkg/gofr/datasource/file/sftp/file.go | 81 | type jsonReader struct { |
| LOW | pkg/gofr/datasource/file/gcs/storage_adapter.go | 481 | } |
| LOW | pkg/gofr/datasource/arangodb/arango_document.go | 21 | // |
| LOW | pkg/gofr/datasource/arangodb/arango.go | 161 | // - dbName: Name of the ArangoDB database where the query will be executed. |
| LOW | pkg/gofr/datasource/arangodb/arango.go | 181 | // - allowRetry (bool) |
| LOW | pkg/gofr/datasource/arangodb/arango.go | 201 | // - forceOneShardAttributeValue (*string) |
| LOW | pkg/gofr/datasource/arangodb/arango.go | 221 | // "options": map[string]any{ |
| LOW | pkg/gofr/datasource/opentsdb/preprocess.go | 21 | // The data type can only be string, int, or int64. |
| LOW | pkg/gofr/datasource/opentsdb/preprocess.go | 41 | // An optional value is used to show whether the query should retrieve global |
| LOW | pkg/gofr/datasource/opentsdb/preprocess.go | 61 | // [OpenTSDB Official Docs]: http://opentsdb.net/docs/build/html/api_http/query/index.html. |
| LOW | pkg/gofr/datasource/opentsdb/preprocess.go | 81 | Rate bool `json:"rate,omitempty"` |
| LOW | pkg/gofr/datasource/opentsdb/preprocess.go | 261 | // An optional flag is used to determine whether or not to resolve the TSUIDs of results to |
| LOW | pkg/gofr/datasource/opentsdb/response.go | 81 | Metric string `json:"metric"` |
| LOW | pkg/gofr/datasource/opentsdb/response.go | 101 | // data points with timestamps out of order. |
| LOW | pkg/gofr/datasource/opentsdb/opentsdb.go | 81 | |
| LOW | pkg/gofr/datasource/pubsub/kafka/kafka.go | 61 | reader map[string]Reader |
| LOW | pkg/gofr/datasource/pubsub/kafka/helper.go | 101 | // ensureConnected verifies the admin connection is alive and, if not, makes a |
| LOW | pkg/gofr/datasource/sql/db.go | 201 | // 2. Get a single object from database |
| LOW | pkg/gofr/rbac/config.go | 41 | Name string `json:"name" yaml:"name"` |
| LOW | pkg/gofr/rbac/config.go | 61 | // - "/api/{resource}" (single-level wildcard: matches /api/users, /api/posts) |
| LOW | pkg/gofr/grpc/rate_limiter.go | 1 | // Package grpc provides gRPC-related additions within the GoFr framework. |
| LOW | pkg/gofr/container/container_test.go | 541 | require.NoError(t, err) |
| LOW | pkg/gofr/container/datasources.go | 41 | // Deprecated: Cassandra interface is deprecated and will be removed in future releases, users must use CassandraWithCon |
| LOW | pkg/gofr/container/datasources.go | 61 | // err := c.Query(&u, "SELECT * FROM users WHERE id=?", 1) |
| LOW | pkg/gofr/container/datasources.go | 81 | // |
| LOW | pkg/gofr/container/datasources.go | 101 | // u := user{} |
| LOW | pkg/gofr/container/datasources.go | 121 | |
| LOW | pkg/gofr/container/datasources.go | 141 | // Deprecated: ExecuteBatch method is deprecated and will be removed in future releases, users must use ExecuteBatchWit |
| LOW | pkg/gofr/container/datasources.go | 441 | // - ctx: Context for request cancellation and timeouts |
| 20 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docs/advanced-guide/authentication/page.md | 140 | - **Subject (`sub`)**: `jwt.WithSubject("user@example.com")` |
| LOW | pkg/gofr/crud_handlers_test.go | 315 | mockResp: sqlmock.NewRows([]string{"id", "name", "is_employed"}).AddRow(1, "John Doe", true).AddRow(2, "Jane Doe", f |
| LOW | pkg/gofr/crud_handlers_test.go | 315 | mockResp: sqlmock.NewRows([]string{"id", "name", "is_employed"}).AddRow(1, "John Doe", true).AddRow(2, "Jane Doe", f |
| LOW | pkg/gofr/crud_handlers_test.go | 317 | expectedResp: []any{&userEntity{ID: 1, Name: "John Doe", IsEmployed: true}, |
| LOW | pkg/gofr/crud_handlers_test.go | 318 | &userEntity{ID: 2, Name: "Jane Doe", IsEmployed: false}}, |
| LOW | pkg/gofr/crud_handlers_test.go | 405 | mockRow: sqlmock.NewRows([]string{"id", "name", "is_employed"}).AddRow(1, "John Doe", true), |
| LOW | pkg/gofr/crud_handlers_test.go | 407 | expectedResp: &userEntity{ID: 1, Name: "John Doe", IsEmployed: true}, |
| LOW | pkg/gofr/context_test.go | 327 | "name": "John Doe", |
| LOW | pkg/gofr/datasource/kv-store/dynamodb/dynamo_test.go | 334 | "name": "John Doe", |
| LOW | pkg/gofr/datasource/kv-store/dynamodb/dynamo_test.go | 342 | assert.Contains(t, jsonStr, "John Doe") |
| LOW | pkg/gofr/datasource/kv-store/dynamodb/dynamo_test.go | 357 | jsonStr := `{"name":"John Doe","age":30,"email":"john@example.com"}` |
| LOW | pkg/gofr/datasource/kv-store/dynamodb/dynamo_test.go | 363 | assert.Equal(t, "John Doe", result["name"]) |
| LOW | pkg/gofr/datasource/kv-store/dynamodb/dynamo_test.go | 369 | invalidJSON := `{"name":"John Doe","age":30,"email":}` |
| LOW | pkg/gofr/datasource/sql/query_builder_test.go | 25 | values: []any{"John Doe", 30}, |
| LOW | pkg/gofr/datasource/sql/query_builder_test.go | 33 | values: []any{"John Doe", 30}, |
| LOW | pkg/gofr/datasource/sql/query_builder_test.go | 41 | values: []any{1, "John Doe"}, |
| LOW | pkg/gofr/datasource/sql/query_builder_test.go | 52 | values: []any{1, "John Doe"}, |
| LOW | pkg/gofr/container/datasources.go | 80 | // err := c.Exec("INSERT INTO users VALUES(1, 'John Doe')") |
| LOW | pkg/gofr/container/datasources.go | 84 | // name := "John Doe" |
| LOW | pkg/gofr/container/datasources.go | 102 | // applied, err := c.ExecCAS(&user, "INSERT INTO users VALUES(1, 'John Doe') IF NOT EXISTS") |
| LOW | pkg/gofr/container/datasources.go | 129 | // c.BatchQuery("INSERT INTO users VALUES(1, 'John Doe')") |
| LOW | pkg/gofr/container/datasources.go | 134 | // name1 := "John Doe" |
| LOW | pkg/gofr/http/middleware/oauth_test.go | 65 | response: jwt.MapClaims{"admin": true, "iat": 1.516239022e+09, "name": "John Doe", "sub": "1234567890"}, |
| LOW | pkg/gofr/static/swagger-ui.js | 1 | !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"fu |
| LOW | pkg/gofr/static/swagger-ui.js | 1 | !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"fu |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | pkg/gofr/datasource/file/gcs/storage_adapter_test.go | 731 | // ─── helpers for signed-URL tests ─────────────────────────────────────────── |
| MEDIUM | pkg/gofr/datasource/file/gcs/storage_adapter_test.go | 778 | // ─── parseServiceAccountCredentials ───────────────────────────────────────── |
| MEDIUM | pkg/gofr/datasource/file/gcs/storage_adapter_test.go | 826 | // ─── validatePrivateKey ────────────────────────────────────────────────────── |
| MEDIUM | pkg/gofr/datasource/file/gcs/storage_adapter_test.go | 853 | // ─── buildSignedURLOptions ─────────────────────────────────────────────────── |
| MEDIUM | pkg/gofr/datasource/file/gcs/storage_adapter_test.go | 899 | // ─── sanitizeContentDisposition ───────────────────────────────────────────── |
| MEDIUM | pkg/gofr/datasource/file/gcs/storage_adapter_test.go | 917 | // ─── rewriteSignedURLEndpoint ──────────────────────────────────────────────── |
| MEDIUM | pkg/gofr/datasource/file/gcs/storage_adapter_test.go | 941 | // ─── NewWriterWithOptions ──────────────────────────────────────────────────── |
| MEDIUM | pkg/gofr/datasource/file/gcs/storage_adapter_test.go | 1007 | // ─── SignedURL ─────────────────────────────────────────────────────────────── |
| MEDIUM | pkg/gofr/datasource/file/gcs/storage_adapter_test.go | 1118 | // ─── Connect with credentials caching ──────────────────────────────────────── |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | docs/guides/production-tracing/page.md | 87 | TRACER_HEADERS: "x-honeycomb-team=YOUR_API_KEY,x-honeycomb-dataset=orders" |
| HIGH | docs/quick-start/observability/page.md | 449 | TRACER_HEADERS="X-Honeycomb-Team=your_api_key" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/workflows/go.yml | 25 | # Define the jobs that this workflow will run |
| MEDIUM | .github/workflows/go.yml | 31 | # Define a matrix strategy to test against multiple Go versions |
| MEDIUM | .github/workflows/go.yml | 270 | # Create a directory for coverage reports |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | pkg/gofr/datasource/pubsub/kafka/kafka_test.go | 780 | // stays robust if the order is revisited. |
| MEDIUM | pkg/gofr/migration/migration.go | 34 | // ensuring the lock stays robust while still allowing fairly quick recovery if a process crashes. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/workflows/go.yml | 397 | # Check if any files changed |
| LOW | .github/workflows/go.yml | 418 | # Check if this module is not already in the list |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pkg/gofr/static/swagger-ui.js | 1 | !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"fu |
| LOW | pkg/gofr/static/swagger-ui-standalone-preset.js | 2 | !function webpackUniversalModuleDefinition(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"fu |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pkg/gofr/gofr.go | 426 | // Example usage: |