Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NawafSwe/go-service-starter-kit
/ types & classes
Types & classes
154 in github.com/NawafSwe/go-service-starter-kit
⨍
Functions
465
◇
Types & classes
154
↓ 6 callers
TypeAlias
NonLoggable
NonLoggable wraps a string that must never appear in logs or JSON output.
internal/text/nonlogable.go:9
Struct
AuthorizationMock
AuthorizationMock bypasses JWT validation for local development. NEVER enable in production.
internal/config/config.go:39
Struct
BadRequestError
BadRequestError represents a 400 Bad Request transport error.
internal/httperrors/bad_request.go:6
Struct
CircuitBreakerConfig
internal/httpx/config.go:15
Struct
CircuitBreakerConfig
internal/grpcx/config.go:15
Struct
Claims
Claims holds the JWT payload. Standard claims (exp, iss, sub) are embedded and validated automatically.
internal/auth/jwt.go:19
Struct
ClaimsParser
ClaimsParser handles JWT generation and validation.
internal/auth/jwt.go:42
FuncType
ClaimsParserOption
ClaimsParserOption is a functional option for ClaimsParser.
internal/auth/jwt.go:30
Struct
Client
internal/httpx/client.go:38
Struct
Client
internal/grpcx/client.go:36
Struct
Clients
internal/config/config.go:32
Struct
Config
internal/httpx/config.go:5
Struct
Config
internal/grpcx/config.go:5
Struct
Config
Config holds the MongoDB connection settings.
internal/clients/db/mongodb/db.go:15
Struct
Config
Config is the full application configuration.
internal/config/config.go:19
Struct
ConflictError
ConflictError represents a 409 Conflict transport error.
internal/httperrors/conflict.go:6
Struct
Consumer
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
Struct
Consumer
Consumer holds configuration for message broker consumers (Kafka, RabbitMQ, etc.).
internal/config/config.go:67
Struct
ConsumerProcess
ConsumerProcess wires up and starts the message consumer.
cmd/app/consumer.go:15
Struct
ConsumerWorker
ConsumerWorker runs a MessageConsumer with graceful shutdown on SIGINT/SIGTERM.
internal/worker/consumer.go:29
Struct
CreateExampleCommandPayload
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
Struct
CreateExampleEncoderDecoder
---- Create ----
internal/app/transport/http/v1/example_encode_decode.go:35
Struct
CreateExampleRequest
api/proto/grpc/v1/gen/example.pb.go:24
Struct
CreateHandler
CreateHandler handles the create-example use case.
internal/app/business/example/create.go:28
Struct
CreateParams
CreateParams holds the data required to insert a new example record.
internal/app/repositories/example/repository.go:32
Struct
CreateRequest
go:generate go tool mockgen -source=${GOFILE} -destination=mock/${GOFILE} -package=mock
internal/app/business/example/create.go:15
Struct
CreateResponse
go:generate go tool mockgen -source=${GOFILE} -destination=mock/${GOFILE} -package=mock
internal/app/business/example/create.go:18
Struct
DB
internal/config/config.go:73
Struct
DBConfig
DBConfig holds the connection parameters for a PostgreSQL database.
test/pkg/testdb/testdb.go:26
Struct
DeadlineError
DeadlineError is returned when a context deadline is exceeded inside an endpoint.
internal/middleware/gokit.go:13
Interface
Decoder
Decoder decodes an HTTP request into a domain request type.
internal/gokit/http/http.go:21
Struct
DeleteExampleEncoderDecoder
---- Delete ----
internal/app/transport/http/v1/example_encode_decode.go:104
Struct
DeleteExampleRequest
api/proto/grpc/v1/gen/example.pb.go:156
Struct
DeleteExampleResponse
api/proto/grpc/v1/gen/example.pb.go:297
Struct
DeleteHandler
DeleteHandler handles the delete-example use case.
internal/app/business/example/delete.go:21
Struct
DeleteRequest
internal/app/business/example/delete.go:10
Struct
DeleteResponse
internal/app/business/example/delete.go:13
Struct
Dependencies
Dependencies holds external client connections shared across the HTTP process.
internal/app/transport/http/bootstrap/di_container.go:13
Struct
Dependencies
Dependencies holds external client connections shared across the gRPC process.
internal/app/transport/grpc/bootstrap/di_container.go:12
Struct
Dependencies
Dependencies holds external client connections shared across the consumer process.
internal/app/transport/consumer/bootstrap/di_container.go:12
Interface
Doer
go:generate mockgen -destination=mock/mock.go -package=mock github.com/nawafswe/go-service-starter-kit/internal/httpx Doer
internal/httpx/client.go:21
Interface
EncodeDecoder
EncodeDecoder combines Encoder and Decoder.
internal/gokit/http/http.go:15
Interface
Encoder
Encoder encodes a domain response type into an HTTP response.
internal/gokit/http/http.go:26
Struct
EndpointCfg
EndpointCfg holds per-endpoint rate limiter and deadline settings.
internal/config/config.go:104
Struct
Endpoints
Endpoints holds per-endpoint rate limiter and timeout configuration.
internal/config/config.go:96
Interface
ErrorEncoder
ErrorEncoder encodes an error into an HTTP response.
internal/gokit/http/http.go:31
Struct
Example
Example is a placeholder domain entity. Replace this with your own domain models.
internal/app/domain/example.go:11
Struct
Example
api/proto/grpc/v1/gen/example.pb.go:335
Struct
ExampleResponse
api/proto/grpc/v1/gen/example.pb.go:203
Interface
ExampleServiceClient
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
Struct
ExampleServiceHandler
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
Interface
ExampleServiceServer
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
Struct
ForbiddenError
ForbiddenError represents a 403 Forbidden transport error.
internal/httperrors/forbidden.go:6
Struct
GRPC
internal/config/config.go:61
Struct
GRPCServerProcess
GRPCServerProcess wires up and starts the gRPC server.
cmd/app/grpc.go:15
Struct
GRPCWorker
GRPCWorker runs a grpc.Server with graceful shutdown on SIGINT/SIGTERM.
internal/worker/grpc.go:18
Struct
General
internal/config/config.go:45
Struct
GetExampleEncoderDecoder
---- Get ----
internal/app/transport/http/v1/example_encode_decode.go:62
Struct
GetExampleRequest
api/proto/grpc/v1/gen/example.pb.go:71
Struct
GetHandler
GetHandler handles the get-example use case.
internal/app/business/example/get.go:24
Struct
GetRequest
internal/app/business/example/get.go:11
Struct
GetResponse
internal/app/business/example/get.go:14
Struct
HTTP
internal/config/config.go:53
Struct
HTTPServerProcess
HTTPServerProcess wires up and starts the HTTP server.
cmd/app/http.go:15
Struct
HTTPWorker
HTTPWorker runs an http.Server with graceful shutdown on SIGINT/SIGTERM.
internal/worker/http.go:22
Interface
Invoker
go:generate mockgen -destination=mock/mock.go -package=mock github.com/nawafswe/go-service-starter-kit/internal/grpcx Invoker
internal/grpcx/client.go:19
Struct
JSONErrorEncoder
JSONErrorEncoder encodes domain and transport errors as JSON:API error responses.
internal/app/transport/http/encoder/json_error_encoder.go:28
Struct
JWT
internal/config/config.go:80
TypeAlias
Level
Level enumerates available log levels.
internal/observability/logger/logger.go:30
Struct
ListExamplesEncoderDecoder
---- List ----
internal/app/transport/http/v1/example_encode_decode.go:83
Struct
ListExamplesRequest
api/proto/grpc/v1/gen/example.pb.go:118
Struct
ListExamplesResponse
api/proto/grpc/v1/gen/example.pb.go:250
Struct
ListHandler
ListHandler handles the list-examples use case.
internal/app/business/example/list.go:21
Struct
ListRequest
internal/app/business/example/list.go:10
Struct
ListResponse
internal/app/business/example/list.go:11
Struct
LogErrorHandler
LogErrorHandler logs errors produced inside go-kit HTTP servers.
internal/gokit/http/http.go:58
Struct
LogErrorHandler
LogErrorHandler logs errors produced inside go-kit gRPC handlers.
internal/gokit/grpc/grpc.go:32
Interface
Logger
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
Interface
MessageConsumer
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
Struct
MessageHandler
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
TypeAlias
MessageRouter
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
Struct
Metrics
internal/config/config.go:91
Struct
MockDoer
internal/httpx/mock/mock.go:13
Struct
MockDoerMockRecorder
internal/httpx/mock/mock.go:18
Struct
MockInvoker
internal/grpcx/mock/mock.go:14
Struct
MockInvokerMockRecorder
internal/grpcx/mock/mock.go:19
Struct
MockMessageConsumer
internal/worker/mock/mock.go:13
Struct
MockMessageConsumerMockRecorder
internal/worker/mock/mock.go:18
Struct
NotFoundError
NotFoundError represents a 404 Not Found transport error.
internal/httperrors/not_found.go:9
FuncType
Option
Option configures the test suite before the test runs.
test/pkg/suite/option.go:22
FuncType
Option
Option customises the behaviour of CreateTestDB.
test/pkg/testdb/testdb.go:79
FuncType
Option
Option configures the resilient HTTP client.
internal/httpx/client.go:26
FuncType
Option
Option configures the resilient gRPC client.
internal/grpcx/client.go:24
FuncType
Option
Option configures the PostgreSQL connection.
internal/clients/db/postgres/db.go:22
FuncType
Option
Option configures the MySQL connection.
internal/clients/db/mysql/db.go:22
Struct
OrderBy
OrderBy describes a single SQL ORDER BY clause.
internal/db/sqlorder/order.go:12
Struct
Page
Page holds caller-supplied pagination input (1-indexed page number + page size).
internal/db/page.go:4
Struct
PageResult
PageResult is the computed pagination metadata returned in list responses.
internal/db/page.go:35
Struct
PasswordGenerator
PasswordGenerator hashes and verifies passwords using bcrypt.
internal/auth/password.go:12
Struct
Payload
internal/text/nonlogable_test.go:42
next →
1–100 of 154, ranked by callers