MCPcopy Create free account

hub / github.com/NawafSwe/go-service-starter-kit / functions

Functions465 in github.com/NawafSwe/go-service-starter-kit

FunctionTestLoggingMiddleware
(t *testing.T)
internal/middleware/logging_test.go:30
FunctionTestMakeHTTPHandler
(t *testing.T)
internal/gokit/http/http_test.go:40
FunctionTestNew
(t *testing.T)
internal/httpx/client_test.go:56
FunctionTestNew
(t *testing.T)
internal/grpcx/client_test.go:45
FunctionTestNewClaimsParser
(t *testing.T)
internal/auth/jwt_test.go:25
FunctionTestNewClient_InvalidURI
(t *testing.T)
internal/clients/db/mongodb/db_integration_test.go:25
FunctionTestNewClient_UnreachableHost
(t *testing.T)
internal/clients/db/mongodb/db_integration_test.go:14
FunctionTestNewConn_UnreachableHost
(t *testing.T)
internal/clients/db/postgres/db_integration_test.go:15
FunctionTestNewConn_UnreachableHost
(t *testing.T)
internal/clients/db/mysql/db_integration_test.go:15
FunctionTestNewConsumerWorker
(t *testing.T)
internal/worker/consumer_test.go:17
FunctionTestNewGRPCWorker
(t *testing.T)
internal/worker/grpc_test.go:13
FunctionTestNewHTTPWorker
(t *testing.T)
internal/worker/http_test.go:13
FunctionTestNewPageResult
(t *testing.T)
internal/db/page_test.go:72
FunctionTestNilContext
(t *testing.T)
internal/observability/logger/logger_test.go:198
FunctionTestNonLoggable
(t *testing.T)
internal/text/nonlogable_test.go:13
FunctionTestNonLoggable_InStruct
(t *testing.T)
internal/text/nonlogable_test.go:41
FunctionTestNotFoundError
(t *testing.T)
internal/httperrors/not_found_test.go:11
FunctionTestOrderBy_SQL
(t *testing.T)
internal/db/sqlorder/order_test.go:9
FunctionTestPage_Clamp
(t *testing.T)
internal/db/page_test.go:30
FunctionTestPage_Offset
(t *testing.T)
internal/db/page_test.go:9
FunctionTestParseJWTToken_Invalid
(t *testing.T)
internal/auth/jwt_test.go:95
FunctionTestPasswordGenerator
(t *testing.T)
internal/auth/password_test.go:12
FunctionTestProcessingError
(t *testing.T)
internal/httperrors/processing_test.go:12
FunctionTestProcessingError_ErrorsIs
(t *testing.T)
internal/httperrors/processing_test.go:50
FunctionTestRateLimit_Disabled
(t *testing.T)
internal/middleware/gokit_test.go:57
FunctionTestRateLimit_ExceedsLimit
(t *testing.T)
internal/middleware/gokit_test.go:79
FunctionTestReporter
(t *testing.T)
internal/observability/metric/metric_test.go:13
FunctionTestSetup_Disabled
(t *testing.T)
internal/observability/tracing/trace_test.go:16
FunctionTestSetup_Enabled
(t *testing.T)
internal/observability/tracing/trace_integration_test.go:14
FunctionTestStartSpan
(t *testing.T)
internal/observability/tracing/trace_test.go:26
FunctionTestTimeoutMiddleware
(t *testing.T)
internal/middleware/gokit_test.go:13
FunctionTestToZerologLevel_InvalidLevel
(t *testing.T)
internal/observability/logger/logger_test.go:206
FunctionTestUnauthorizedError
(t *testing.T)
internal/httperrors/unauthorized_test.go:11
FunctionTestUserFromCtx
(t *testing.T)
internal/auth/user_test.go:11
FunctionTestWithCallerSkip
(t *testing.T)
internal/observability/logger/logger_test.go:191
FunctionTestWithLevel_FiltersBelow
(t *testing.T)
internal/observability/logger/logger_test.go:129
FunctionTestWithPrettyOutput
(t *testing.T)
internal/observability/logger/logger_test.go:183
MethodWarn
(ctx context.Context, msg string)
internal/observability/logger/logger.go:141
MethodWarnW
(ctx context.Context, msg string, fields map[string]any)
internal/observability/logger/logger.go:145
FunctionWithAuthMock
WithAuthMock enables the authorization mock so tests don't need real JWT tokens.
test/pkg/suite/option.go:52
FunctionWithMigrationsPath
WithMigrationsPath overrides the default migrations directory.
test/pkg/testdb/testdb.go:82
FunctionWithMockGRPCServer
WithMockGRPCServer starts a mock gRPC server using mockchaos and sets its address on the suite config.
test/pkg/suite/option.go:40
FunctionWithMockHTTPServer
WithMockHTTPServer starts a mock HTTP server using mockchaos and sets its URL on the suite config. The configFn receives the server URL so the caller
test/pkg/suite/option.go:27
FunctionWithSkipMigrations
WithSkipMigrations skips running migrations — useful for testing missing-table error paths.
test/pkg/testdb/testdb.go:90
Function_ExampleService_CreateExample_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
api/proto/grpc/v1/gen/example_grpc.pb.go:123
Function_ExampleService_DeleteExample_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
api/proto/grpc/v1/gen/example_grpc.pb.go:177
Function_ExampleService_GetExample_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
api/proto/grpc/v1/gen/example_grpc.pb.go:141
Function_ExampleService_ListExamples_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
api/proto/grpc/v1/gen/example_grpc.pb.go:159
MethodhandleMessage
handleMessage authenticates and routes a single message through the go-kit endpoint chain.
internal/app/transport/consumer/consumer.go:102
Functioninit
nolint:gochecknoinits
internal/observability/logger/logger.go:59
Functioninit
()
api/proto/grpc/v1/gen/example.pb.go:515
Functionlog
()
test/load/pkg/config.js:64
Functionmain
()
cmd/main.go:40
MethodmustEmbedUnimplementedExampleServiceServer
()
api/proto/grpc/v1/gen/example_grpc.pb.go:91
MethodmustEmbedUnimplementedExampleServiceServer
()
api/proto/grpc/v1/gen/example_grpc.pb.go:110
MethodmustEmbedUnimplementedExampleServiceServer
()
api/proto/grpc/v1/gen/example_grpc.pb.go:116
FunctionnoopHandler
(_ context.Context, req any)
internal/middleware/grpc_test.go:21
Functionsetup
()
test/load/rpc_list_examples.js:10
Functionsetup
()
test/load/http_get_example.js:11
Functionsetup
()
test/load/rpc_delete_example.js:11
Functionsetup
()
test/load/http_get_list_examples.js:10
Functionsetup
()
test/load/http_post_create_example.js:11
Functionsetup
()
test/load/rpc_create_example.js:13
Functionsetup
()
test/load/http_delete_example.js:11
Functionsetup
()
test/load/rpc_get_example.js:11
← previous401–465 of 465, ranked by callers