MCPcopy Create free account

hub / github.com/DsThakurRawat/Backend-from-first-Principle / types & classes

Types & classes104 in github.com/DsThakurRawat/Backend-from-first-Principle

↓ 8 callersStructResponse
Response represents what the server sends back to the client
2.Routing-in-backend/Router.go:33
↓ 3 callersClassResponse
2.Routing-in-backend/code/python/a_router_in_python_1.py:20
↓ 3 callersStructUser
4.Authentication and authorization for backend engineers/code/go/04_sessions_1.go:18
↓ 2 callersClassCreateBookRequest
6.controllers-services-repositories-middlewares-and-request-context/code/python/a_note_on_nodejs_vs_go_python_1.py:5
↓ 1 callersClassAddress
3.Serialization-and-Deserialization-or-backend-engineers/code/python/serialization_in_python_1.py:29
↓ 1 callersClassApplication
16.Graceful Shutdown/code/python/72_graceful_shutdown_in_python_1.py:11
↓ 1 callersClassAuthInterceptor
13.gRPC-and-Inter-Service-Communication-for-Microservices/code/python/interceptors_the_middleware_of_grpc_7.py:3
↓ 1 callersClassBook
5. Validations and transformations for backend engineers/code/python/example_8.py:17
↓ 1 callersClassCreateBook
5. Validations and transformations for backend engineers/code/python/example_1.py:9
↓ 1 callersClassFakeRepo
22.Automated-Testing-Unit-Integration-and-E2E/code/python/dependency_injection_for_testability_4.py:12
↓ 1 callersClassGetUser
2.Routing-in-backend/code/python/a_router_in_python_1.py:32
↓ 1 callersStructGetUser
==================== CONCRETE HANDLERS ==================== GetUser handles requests like GET /api/users/123 It EMBEDS BaseHandler — meaning it gets B
2.Routing-in-backend/Router.go:202
↓ 1 callersClassHub
24.Web-Sockets-And-Real-time-Communication-with-WebSockets/code/python/connection_management_3.py:3
↓ 1 callersClassJSONSerializer
3.Serialization-and-Deserialization-or-backend-engineers/code/python/serialization_in_python_1.py:17
↓ 1 callersClassListBooks
2.Routing-in-backend/code/python/a_router_in_python_1.py:37
↓ 1 callersClassOrderService
22.Automated-Testing-Unit-Integration-and-E2E/code/python/dependency_injection_for_testability_4.py:2
↓ 1 callersClassRequest
2.Routing-in-backend/code/python/a_router_in_python_1.py:13
↓ 1 callersClassRouter
2.Routing-in-backend/code/python/a_router_in_python_1.py:46
↓ 1 callersClassSettings
All runtime config. pydantic VALIDATES every field automatically when the object is constructed — mandatory fields without a default rais
14.Production-grade Configuration Management/code/python/93_example_yaml_config_file_1.py:14
↓ 1 callersClassTokenAuth
13.gRPC-and-Inter-Service-Communication-for-Microservices/code/python/authentication_security_8.py:11
↓ 1 callersClassTokenBucketRateLimiter
10.Task queues and background job/rate_limiter.py:5
↓ 1 callersClassUser
3.Serialization-and-Deserialization-or-backend-engineers/code/python/serialization_in_python_1.py:37
↓ 1 callersInterfaceUserRepo
The unit depends on an interface — the seam that lets us substitute a double (§6).
22.Automated-Testing-Unit-Integration-and-E2E/code/go/test_doubles_3.go:2
↓ 1 callersClassUserService
13.gRPC-and-Inter-Service-Communication-for-Microservices/code/python/unary_rpc_1.py:7
StructAddress
3.Serialization-and-Deserialization-or-backend-engineers/code/go/serialization_in_go_1.go:44
ClassAppError
12. Error Handling and Building Fault Tolerant Systems/code/python/python_global_error_handler_fastapi_2.py:10
StructAppError
AppError is the canonical error type for this application.
12. Error Handling and Building Fault Tolerant Systems/errors/types.go:6
ClassBaseHandler
2.Routing-in-backend/code/python/a_router_in_python_1.py:26
StructBaseHandler
==================== BASE HANDLER (COMPOSITION / "INHERITANCE") ==================== BaseHandler holds shared logic that MULTIPLE handlers need Instea
2.Routing-in-backend/Router.go:179
StructBaseHandler
"INHERITANCE" via COMPOSITION: BaseHandler holds shared logic; concrete handlers EMBED it and reuse its methods.
2.Routing-in-backend/code/go/a_router_in_go_1.go:65
ClassBaseModel
3.Serialization-and-Deserialization-or-backend-engineers/code/python/serialization_in_python_1.py:25
StructBaseModel
"INHERITANCE" via COMPOSITION: BaseModel holds shared fields; embedding it into User reuses them (and their json tags).
3.Serialization-and-Deserialization-or-backend-engineers/code/go/serialization_in_go_1.go:28
StructBook
5. Validations and transformations for backend engineers/code/go/example_8.go:19
ClassBookRepo
6.controllers-services-repositories-middlewares-and-request-context/code/python/07the_repository_layer_4.py:1
ClassBookService
6.controllers-services-repositories-middlewares-and-request-context/code/python/06the_service_layer_3.py:1
InterfaceClock
1) Injected clock — deterministic time.
22.Automated-Testing-Unit-Integration-and-E2E/code/go/mocking_time_randomness_external_apis_9.go:2
StructConfig
12. Error Handling and Building Fault Tolerant Systems/code/go/go_config_validation_at_boot_1.go:9
StructConfig
Config holds all runtime application settings. The `validate` tags enforce rules at startup — this is the single most important safeguard for config m
14.Production-grade Configuration Management/code/go/93_example_yaml_config_file_1.go:16
ClassConflictError
12. Error Handling and Building Fault Tolerant Systems/code/python/python_global_error_handler_fastapi_2.py:20
ClassContact
5. Validations and transformations for backend engineers/code/python/example_7.py:4
ClassContact
5. Validations and transformations for backend engineers/code/python/example_3.py:5
StructContact
5. Validations and transformations for backend engineers/code/go/example_3.go:11
ClassCreateBook
5. Validations and transformations for backend engineers/code/python/example_8.py:8
StructCreateBook
CreateBook is the SCHEMA. The tags declare every rule: required -> existence check the Go type -> type check (string) min=5,max=100 -> constrai
5. Validations and transformations for backend engineers/code/go/example_1.go:19
StructCreateBook
---- schema (the gate) ----
5. Validations and transformations for backend engineers/code/go/example_8.go:15
StructCreateBookRequest
CreateBookRequest is our native format — the bind target.
6.controllers-services-repositories-middlewares-and-request-context/code/go/a_note_on_nodejs_vs_go_python_1.go:2
StructEmailHandler
10.Task queues and background job/handlers/email_handler.go:13
StructEmailJob
19.Backend Scaling and Performance Engineering: Part-2/code/go/example_3.go:7
StructEmailPayload
Payload struct — serialized to JSON in queue
10.Task queues and background job/tasks/email.go:14
ClassEnvironment
14.Production-grade Configuration Management/code/python/93_example_yaml_config_file_1.py:8
StructErrorResponse
12. Error Handling and Building Fault Tolerant Systems/middleware/error_handler.go:13
StructFieldError
7.API-DESIGN-RestAPI/code/go/a_consistent_error_envelope_5.go:1
StructGetUser
GetUser embeds BaseHandler (composition) and satisfies Handler.
2.Routing-in-backend/code/go/a_router_in_go_1.go:72
ClassHandler
2.Routing-in-backend/code/python/a_router_in_python_1.py:8
InterfaceHandler
==================== INTERFACE (ABSTRACTION) ==================== Handler is an INTERFACE — a contract/promise It says: "any type that has a method ca
2.Routing-in-backend/Router.go:17
InterfaceHandler
ABSTRACTION: Handler is an interface — it names a capability ("be able to Handle a request") without saying how. Any type with a Handle method IS-A Ha
2.Routing-in-backend/code/go/a_router_in_go_1.go:9
StructHealthStatus
12. Error Handling and Building Fault Tolerant Systems/code/go/go_deep_health_check_endpoint_2.go:1
StructHub
24.Web-Sockets-And-Real-time-Communication-with-WebSockets/code/go/connection_management_3.go:1
StructJSONSerializer
POLYMORPHISM: JSONSerializer implements Serializer. Any other format (YAML, Protobuf) could implement the same interface and be used interchangeably t
3.Serialization-and-Deserialization-or-backend-engineers/code/go/serialization_in_go_1.go:17
StructListBooks
ListBooks handles requests like GET /api/books?page=2 Also embeds BaseHandler for the same shared log() method
2.Routing-in-backend/Router.go:220
StructListBooks
2.Routing-in-backend/code/go/a_router_in_go_1.go:78
ClassNotFoundError
12. Error Handling and Building Fault Tolerant Systems/code/python/python_global_error_handler_fastapi_2.py:16
ClassNote
1.HTTP-AND-CORS/code/python/mime_types_the_content_type_vocabulary_1.py:6
StructNote
1.HTTP-AND-CORS/code/go/mime_types_the_content_type_vocabulary_1.go:9
InterfaceNotifier
22.Automated-Testing-Unit-Integration-and-E2E/code/go/test_doubles_3.go:4
InterfaceOrderRepo
Depend on an INTERFACE, not a concrete type — that interface is the seam.
22.Automated-Testing-Unit-Integration-and-E2E/code/go/dependency_injection_for_testability_4.go:2
StructOrderService
22.Automated-Testing-Unit-Integration-and-E2E/code/go/dependency_injection_for_testability_4.go:4
ClassPagination
5. Validations and transformations for backend engineers/code/python/example_6.py:4
StructPagination
5. Validations and transformations for backend engineers/code/go/example_6.go:9
StructProduct
9.Caching, the secret behind it all/code/go/104_session_management_with_redis_python_1.go:12
StructProduct
11.Full text search using Elasticsearch for blazingly fast search/code/go/go_full_text_search_handler_1.go:12
ClassProfile
5. Validations and transformations for backend engineers/code/python/example_4.py:5
StructProfile
5. Validations and transformations for backend engineers/code/go/example_4.go:8
StructRequest
==================== DATA STRUCTURES ==================== Request represents an incoming HTTP request from a client Think of it as: "what the browser/
2.Routing-in-backend/Router.go:25
StructRequest
2.Routing-in-backend/code/go/a_router_in_go_1.go:13
ClassResource
4.Authentication and authorization for backend engineers/code/python/16_authorization_rbac_11.py:7
StructResource
4.Authentication and authorization for backend engineers/code/go/16_authorization_rbac_11.go:2
StructResponse
2.Routing-in-backend/code/go/a_router_in_go_1.go:19
StructRouter
==================== ROUTER (ENCAPSULATION) ==================== Router is the main brain — it stores all registered routes and matches incoming reque
2.Routing-in-backend/Router.go:42
StructRouter
ENCAPSULATION: "routes" is lowercase => unexported => private to the package. Outsiders cannot touch the table directly; they go through the methods w
2.Routing-in-backend/code/go/a_router_in_go_1.go:24
ClassSecurityHeaders
1.HTTP-AND-CORS/code/python/security_headers_the_attack_each_one_sto_2.py:3
ClassSerializer
3.Serialization-and-Deserialization-or-backend-engineers/code/python/serialization_in_python_1.py:8
InterfaceSerializer
ABSTRACTION: Serializer names a capability — "turn data into bytes and back" — without binding to a concrete format. Code depends on this contract, so
3.Serialization-and-Deserialization-or-backend-engineers/code/go/serialization_in_go_1.go:9
ClassSignup
5. Validations and transformations for backend engineers/code/python/example_5.py:4
StructSignup
5. Validations and transformations for backend engineers/code/go/example_5.go:3
StructSlidingWindowLimiter
10.Task queues and background job/rate/sliding_window.go:11
ClassSubject
4.Authentication and authorization for backend engineers/code/python/16_authorization_rbac_11.py:5
StructSubject
4.Authentication and authorization for backend engineers/code/go/16_authorization_rbac_11.go:1
ClassTimingMiddleware
18. Backend Scaling and Performance Engineering-part-1/code/python/example_2.py:8
ClassTypePayload
5. Validations and transformations for backend engineers/code/python/example_2.py:5
StructTypePayload
*bool so we can tell "false" apart from "missing".
5. Validations and transformations for backend engineers/code/go/example_2.go:10
StructUser
ENCAPSULATION: an exported struct whose JSON shape is controlled by tags. "password" is unexported (lowercase) -> private AND invisible to the JSON en
3.Serialization-and-Deserialization-or-backend-engineers/code/go/serialization_in_go_1.go:36
ClassUserService
13.gRPC-and-Inter-Service-Communication-for-Microservices/code/python/metadata_deadlines_cancellation_5.py:15
ClassUserService
13.gRPC-and-Inter-Service-Communication-for-Microservices/code/python/bidirectional_streaming_4.py:4
ClassUserService
13.gRPC-and-Inter-Service-Communication-for-Microservices/code/python/server_streaming_2.py:4
ClassUserService
13.gRPC-and-Inter-Service-Communication-for-Microservices/code/python/status_codes_error_handling_6.py:4
ClassUserService
13.gRPC-and-Inter-Service-Communication-for-Microservices/code/python/client_streaming_3.py:4
StructfakeRepo
In tests: a FAKE in-memory repo (no real DB needed)
22.Automated-Testing-Unit-Integration-and-E2E/code/go/dependency_injection_for_testability_4.go:14
StructfixedClock
22.Automated-Testing-Unit-Integration-and-E2E/code/go/mocking_time_randomness_external_apis_9.go:3
Structserver
Embed the generated UnimplementedUserServiceServer for forward-compat.
13.gRPC-and-Inter-Service-Communication-for-Microservices/code/go/unary_rpc_2.go:16
next →1–100 of 104, ranked by callers