MCPcopy Create free account

hub / github.com/NawafSwe/go-service-starter-kit / types & classes

Types & classes154 in github.com/NawafSwe/go-service-starter-kit

↓ 6 callersTypeAliasNonLoggable
NonLoggable wraps a string that must never appear in logs or JSON output.
internal/text/nonlogable.go:9
StructAuthorizationMock
AuthorizationMock bypasses JWT validation for local development. NEVER enable in production.
internal/config/config.go:39
StructBadRequestError
BadRequestError represents a 400 Bad Request transport error.
internal/httperrors/bad_request.go:6
StructCircuitBreakerConfig
internal/httpx/config.go:15
StructCircuitBreakerConfig
internal/grpcx/config.go:15
StructClaims
Claims holds the JWT payload. Standard claims (exp, iss, sub) are embedded and validated automatically.
internal/auth/jwt.go:19
StructClaimsParser
ClaimsParser handles JWT generation and validation.
internal/auth/jwt.go:42
FuncTypeClaimsParserOption
ClaimsParserOption is a functional option for ClaimsParser.
internal/auth/jwt.go:30
StructClient
internal/httpx/client.go:38
StructClient
internal/grpcx/client.go:36
StructClients
internal/config/config.go:32
StructConfig
internal/httpx/config.go:5
StructConfig
internal/grpcx/config.go:5
StructConfig
Config holds the MongoDB connection settings.
internal/clients/db/mongodb/db.go:15
StructConfig
Config is the full application configuration.
internal/config/config.go:19
StructConflictError
ConflictError represents a 409 Conflict transport error.
internal/httperrors/conflict.go:6
StructConsumer
Consumer implements worker.MessageConsumer by routing decoded messages through go-kit endpoints. Replace the Start/Close stubs with your broker client
internal/app/transport/consumer/consumer.go:27
StructConsumer
Consumer holds configuration for message broker consumers (Kafka, RabbitMQ, etc.).
internal/config/config.go:67
StructConsumerProcess
ConsumerProcess wires up and starts the message consumer.
cmd/app/consumer.go:15
StructConsumerWorker
ConsumerWorker runs a MessageConsumer with graceful shutdown on SIGINT/SIGTERM.
internal/worker/consumer.go:29
StructCreateExampleCommandPayload
CreateExampleCommandPayload is the transport-level wire format for the "example.create" message, matching the AsyncAPI CreateExampleCommandPayload sch
internal/app/transport/consumer/v1/example_decode.go:12
StructCreateExampleEncoderDecoder
---- Create ----
internal/app/transport/http/v1/example_encode_decode.go:35
StructCreateExampleRequest
api/proto/grpc/v1/gen/example.pb.go:24
StructCreateHandler
CreateHandler handles the create-example use case.
internal/app/business/example/create.go:28
StructCreateParams
CreateParams holds the data required to insert a new example record.
internal/app/repositories/example/repository.go:32
StructCreateRequest
go:generate go tool mockgen -source=${GOFILE} -destination=mock/${GOFILE} -package=mock
internal/app/business/example/create.go:15
StructCreateResponse
go:generate go tool mockgen -source=${GOFILE} -destination=mock/${GOFILE} -package=mock
internal/app/business/example/create.go:18
StructDB
internal/config/config.go:73
StructDBConfig
DBConfig holds the connection parameters for a PostgreSQL database.
test/pkg/testdb/testdb.go:26
StructDeadlineError
DeadlineError is returned when a context deadline is exceeded inside an endpoint.
internal/middleware/gokit.go:13
InterfaceDecoder
Decoder decodes an HTTP request into a domain request type.
internal/gokit/http/http.go:21
StructDeleteExampleEncoderDecoder
---- Delete ----
internal/app/transport/http/v1/example_encode_decode.go:104
StructDeleteExampleRequest
api/proto/grpc/v1/gen/example.pb.go:156
StructDeleteExampleResponse
api/proto/grpc/v1/gen/example.pb.go:297
StructDeleteHandler
DeleteHandler handles the delete-example use case.
internal/app/business/example/delete.go:21
StructDeleteRequest
internal/app/business/example/delete.go:10
StructDeleteResponse
internal/app/business/example/delete.go:13
StructDependencies
Dependencies holds external client connections shared across the HTTP process.
internal/app/transport/http/bootstrap/di_container.go:13
StructDependencies
Dependencies holds external client connections shared across the gRPC process.
internal/app/transport/grpc/bootstrap/di_container.go:12
StructDependencies
Dependencies holds external client connections shared across the consumer process.
internal/app/transport/consumer/bootstrap/di_container.go:12
InterfaceDoer
go:generate mockgen -destination=mock/mock.go -package=mock github.com/nawafswe/go-service-starter-kit/internal/httpx Doer
internal/httpx/client.go:21
InterfaceEncodeDecoder
EncodeDecoder combines Encoder and Decoder.
internal/gokit/http/http.go:15
InterfaceEncoder
Encoder encodes a domain response type into an HTTP response.
internal/gokit/http/http.go:26
StructEndpointCfg
EndpointCfg holds per-endpoint rate limiter and deadline settings.
internal/config/config.go:104
StructEndpoints
Endpoints holds per-endpoint rate limiter and timeout configuration.
internal/config/config.go:96
InterfaceErrorEncoder
ErrorEncoder encodes an error into an HTTP response.
internal/gokit/http/http.go:31
StructExample
Example is a placeholder domain entity. Replace this with your own domain models.
internal/app/domain/example.go:11
StructExample
api/proto/grpc/v1/gen/example.pb.go:335
StructExampleResponse
api/proto/grpc/v1/gen/example.pb.go:203
InterfaceExampleServiceClient
ExampleServiceClient is the client API for ExampleService service. For semantics around ctx use and closing/ending streaming RPCs, please refer to ht
api/proto/grpc/v1/gen/example_grpc.pb.go:24
StructExampleServiceHandler
ExampleServiceHandler implements grpcv1.ExampleServiceServer by delegating each RPC method to a go-kit gRPC transport handler. This gives every method
internal/app/transport/grpc/v1/example_handler.go:13
InterfaceExampleServiceServer
ExampleServiceServer is the server API for ExampleService service. All implementations must embed UnimplementedExampleServiceServer for forward compat
api/proto/grpc/v1/gen/example_grpc.pb.go:82
StructForbiddenError
ForbiddenError represents a 403 Forbidden transport error.
internal/httperrors/forbidden.go:6
StructGRPC
internal/config/config.go:61
StructGRPCServerProcess
GRPCServerProcess wires up and starts the gRPC server.
cmd/app/grpc.go:15
StructGRPCWorker
GRPCWorker runs a grpc.Server with graceful shutdown on SIGINT/SIGTERM.
internal/worker/grpc.go:18
StructGeneral
internal/config/config.go:45
StructGetExampleEncoderDecoder
---- Get ----
internal/app/transport/http/v1/example_encode_decode.go:62
StructGetExampleRequest
api/proto/grpc/v1/gen/example.pb.go:71
StructGetHandler
GetHandler handles the get-example use case.
internal/app/business/example/get.go:24
StructGetRequest
internal/app/business/example/get.go:11
StructGetResponse
internal/app/business/example/get.go:14
StructHTTP
internal/config/config.go:53
StructHTTPServerProcess
HTTPServerProcess wires up and starts the HTTP server.
cmd/app/http.go:15
StructHTTPWorker
HTTPWorker runs an http.Server with graceful shutdown on SIGINT/SIGTERM.
internal/worker/http.go:22
InterfaceInvoker
go:generate mockgen -destination=mock/mock.go -package=mock github.com/nawafswe/go-service-starter-kit/internal/grpcx Invoker
internal/grpcx/client.go:19
StructJSONErrorEncoder
JSONErrorEncoder encodes domain and transport errors as JSON:API error responses.
internal/app/transport/http/encoder/json_error_encoder.go:28
StructJWT
internal/config/config.go:80
TypeAliasLevel
Level enumerates available log levels.
internal/observability/logger/logger.go:30
StructListExamplesEncoderDecoder
---- List ----
internal/app/transport/http/v1/example_encode_decode.go:83
StructListExamplesRequest
api/proto/grpc/v1/gen/example.pb.go:118
StructListExamplesResponse
api/proto/grpc/v1/gen/example.pb.go:250
StructListHandler
ListHandler handles the list-examples use case.
internal/app/business/example/list.go:21
StructListRequest
internal/app/business/example/list.go:10
StructListResponse
internal/app/business/example/list.go:11
StructLogErrorHandler
LogErrorHandler logs errors produced inside go-kit HTTP servers.
internal/gokit/http/http.go:58
StructLogErrorHandler
LogErrorHandler logs errors produced inside go-kit gRPC handlers.
internal/gokit/grpc/grpc.go:32
InterfaceLogger
go:generate go tool mockgen -source=${GOFILE} -destination=mock/${GOFILE} -package=mock Logger is the primary logging interface. All application code
internal/observability/logger/logger.go:18
InterfaceMessageConsumer
MessageConsumer is the interface that any message consumer must implement. Implementations are responsible for connecting to the broker, subscribing t
internal/worker/consumer.go:20
StructMessageHandler
MessageHandler pairs a decode function with a go-kit endpoint. Decode converts the raw payload into the request type the endpoint expects.
internal/app/transport/consumer/bootstrap/di_container.go:28
TypeAliasMessageRouter
MessageRouter maps message type names to their handler. Used by the consumer to route incoming messages.
internal/app/transport/consumer/bootstrap/di_container.go:35
StructMetrics
internal/config/config.go:91
StructMockDoer
internal/httpx/mock/mock.go:13
StructMockDoerMockRecorder
internal/httpx/mock/mock.go:18
StructMockInvoker
internal/grpcx/mock/mock.go:14
StructMockInvokerMockRecorder
internal/grpcx/mock/mock.go:19
StructMockMessageConsumer
internal/worker/mock/mock.go:13
StructMockMessageConsumerMockRecorder
internal/worker/mock/mock.go:18
StructNotFoundError
NotFoundError represents a 404 Not Found transport error.
internal/httperrors/not_found.go:9
FuncTypeOption
Option configures the test suite before the test runs.
test/pkg/suite/option.go:22
FuncTypeOption
Option customises the behaviour of CreateTestDB.
test/pkg/testdb/testdb.go:79
FuncTypeOption
Option configures the resilient HTTP client.
internal/httpx/client.go:26
FuncTypeOption
Option configures the resilient gRPC client.
internal/grpcx/client.go:24
FuncTypeOption
Option configures the PostgreSQL connection.
internal/clients/db/postgres/db.go:22
FuncTypeOption
Option configures the MySQL connection.
internal/clients/db/mysql/db.go:22
StructOrderBy
OrderBy describes a single SQL ORDER BY clause.
internal/db/sqlorder/order.go:12
StructPage
Page holds caller-supplied pagination input (1-indexed page number + page size).
internal/db/page.go:4
StructPageResult
PageResult is the computed pagination metadata returned in list responses.
internal/db/page.go:35
StructPasswordGenerator
PasswordGenerator hashes and verifies passwords using bcrypt.
internal/auth/password.go:12
StructPayload
internal/text/nonlogable_test.go:42
next →1–100 of 154, ranked by callers