Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NawafSwe/go-service-starter-kit
/ functions
Functions
465 in github.com/NawafSwe/go-service-starter-kit
⨍
Functions
465
◇
Types & classes
154
Method
ListExamples
ListExamples returns all examples.
api/proto/grpc/v1/gen/example_grpc.pb.go:88
Method
ListExamples
(context.Context, *ListExamplesRequest)
api/proto/grpc/v1/gen/example_grpc.pb.go:104
Function
MakeConsumerEndpoint
MakeConsumerEndpoint wraps a go-kit endpoint with middlewares for use in message consumers. The returned endpoint applies the middleware chain in orde
internal/gokit/consumer/consumer.go:8
Function
MakeCreateExampleEndpoint
(h createExampleHandler)
internal/app/endpoint/v1/example.go:15
Function
MakeDeleteExampleEndpoint
(h deleteExampleHandler)
internal/app/endpoint/v1/example.go:57
Function
MakeGRPCHandler
MakeGRPCHandler assembles a go-kit gRPC server handler with the provided middlewares applied in order.
internal/gokit/grpc/grpc.go:13
Function
MakeGetExampleEndpoint
(h getExampleHandler)
internal/app/endpoint/v1/example.go:29
Function
MakeHTTPHandler
MakeHTTPHandler assembles a go-kit HTTP server with the provided middlewares applied in order.
internal/gokit/http/http.go:37
Function
MakeListExamplesEndpoint
(h listExamplesHandler)
internal/app/endpoint/v1/example.go:43
Method
MarshalJSON
()
internal/text/nonlogable.go:19
Method
Message
()
internal/httperrors/bad_request.go:20
Method
Message
()
internal/httperrors/not_found.go:15
Method
Message
()
internal/httperrors/conflict.go:19
Method
Message
()
internal/httperrors/processing.go:17
Method
Message
()
internal/httperrors/unauthorized.go:19
Method
Message
()
internal/httperrors/forbidden.go:19
Function
NewConsumer
NewConsumer wires up the consumer with its dependencies.
internal/app/transport/consumer/consumer.go:35
Function
NewExampleServiceClient
(cc grpc.ClientConnInterface)
api/proto/grpc/v1/gen/example_grpc.pb.go:39
Function
NewGRPCServer
NewGRPCServer builds the gRPC server — initialises repositories, wires handlers, and returns a configured *grpc.Server ready to be handed to the gRPC
internal/app/transport/grpc/server.go:29
Function
NewHTTPServer
NewHTTPServer builds the HTTP server — initialises repositories, wires routes, and returns a configured http.Server ready to be handed to the HTTP wor
internal/app/transport/http/server.go:14
Method
ProtoMessage
()
api/proto/grpc/v1/gen/example.pb.go:45
Method
ProtoMessage
()
api/proto/grpc/v1/gen/example.pb.go:92
Method
ProtoMessage
()
api/proto/grpc/v1/gen/example.pb.go:137
Method
ProtoMessage
()
api/proto/grpc/v1/gen/example.pb.go:177
Method
ProtoMessage
()
api/proto/grpc/v1/gen/example.pb.go:224
Method
ProtoMessage
()
api/proto/grpc/v1/gen/example.pb.go:271
Method
ProtoMessage
()
api/proto/grpc/v1/gen/example.pb.go:316
Method
ProtoMessage
()
api/proto/grpc/v1/gen/example.pb.go:359
Method
ProtoReflect
()
api/proto/grpc/v1/gen/example.pb.go:47
Method
ProtoReflect
()
api/proto/grpc/v1/gen/example.pb.go:94
Method
ProtoReflect
()
api/proto/grpc/v1/gen/example.pb.go:139
Method
ProtoReflect
()
api/proto/grpc/v1/gen/example.pb.go:179
Method
ProtoReflect
()
api/proto/grpc/v1/gen/example.pb.go:226
Method
ProtoReflect
()
api/proto/grpc/v1/gen/example.pb.go:273
Method
ProtoReflect
()
api/proto/grpc/v1/gen/example.pb.go:318
Method
ProtoReflect
()
api/proto/grpc/v1/gen/example.pb.go:361
Method
Read
(_ []byte)
internal/httpx/client_test.go:327
Method
Register
(args ProcessArgs)
cmd/app/consumer.go:19
Method
Register
(args ProcessArgs)
cmd/app/grpc.go:19
Method
Register
(args ProcessArgs)
cmd/app/http.go:19
Function
RegisterExampleServiceServer
(s grpc.ServiceRegistrar, srv ExampleServiceServer)
api/proto/grpc/v1/gen/example_grpc.pb.go:119
Method
Reset
()
api/proto/grpc/v1/gen/example.pb.go:32
Method
Reset
()
api/proto/grpc/v1/gen/example.pb.go:79
Method
Reset
()
api/proto/grpc/v1/gen/example.pb.go:124
Method
Reset
()
api/proto/grpc/v1/gen/example.pb.go:164
Method
Reset
()
api/proto/grpc/v1/gen/example.pb.go:211
Method
Reset
()
api/proto/grpc/v1/gen/example.pb.go:258
Method
Reset
()
api/proto/grpc/v1/gen/example.pb.go:303
Method
Reset
()
api/proto/grpc/v1/gen/example.pb.go:346
Method
Run
(ctx context.Context)
cmd/app/registry.go:50
Method
Start
(ctx context.Context)
internal/worker/mock/mock.go:32
Method
Start
(ctx any)
internal/worker/mock/mock.go:39
Method
Start
Start begins consuming messages. This method blocks until ctx is done or an unrecoverable error occurs. Replace the TODO with your actual broker subsc
internal/app/transport/consumer/consumer.go:67
Method
String
()
api/proto/grpc/v1/gen/example.pb.go:41
Method
String
()
api/proto/grpc/v1/gen/example.pb.go:88
Method
String
()
api/proto/grpc/v1/gen/example.pb.go:133
Method
String
()
api/proto/grpc/v1/gen/example.pb.go:173
Method
String
()
api/proto/grpc/v1/gen/example.pb.go:220
Method
String
()
api/proto/grpc/v1/gen/example.pb.go:267
Method
String
()
api/proto/grpc/v1/gen/example.pb.go:312
Method
String
()
api/proto/grpc/v1/gen/example.pb.go:355
Function
TestAuthMock
(t *testing.T)
internal/middleware/http_test.go:132
Function
TestAuthOptional
(t *testing.T)
internal/middleware/http_test.go:88
Function
TestAuthRequired
(t *testing.T)
internal/middleware/http_test.go:33
Function
TestAuthRequired_MockEnabled
(t *testing.T)
internal/middleware/http_test.go:66
Function
TestBadRequestError
(t *testing.T)
internal/httperrors/bad_request_test.go:11
Function
TestClient_Do
(t *testing.T)
internal/httpx/client_test.go:91
Function
TestClient_Do_BodyReadError
(t *testing.T)
internal/httpx/client_test.go:271
Function
TestClient_Do_CircuitBreakerOpen
(t *testing.T)
internal/httpx/client_test.go:251
Function
TestClient_Do_RetryBackoff
(t *testing.T)
internal/httpx/client_test.go:281
Function
TestClient_Invoke
(t *testing.T)
internal/grpcx/client_test.go:80
Function
TestClient_Invoke_CircuitBreakerOpen
(t *testing.T)
internal/grpcx/client_test.go:249
Function
TestClient_Invoke_RetryBackoff
(t *testing.T)
internal/grpcx/client_test.go:205
Function
TestConflictError
(t *testing.T)
internal/httperrors/conflict_test.go:11
Function
TestConsumerAuthMock
(t *testing.T)
internal/middleware/consumer_test.go:106
Function
TestConsumerAuthOptional
(t *testing.T)
internal/middleware/consumer_test.go:71
Function
TestConsumerAuthRequired
(t *testing.T)
internal/middleware/consumer_test.go:36
Function
TestConsumerWorker_Run
(t *testing.T)
internal/worker/consumer_test.go:43
Function
TestCreateExample
(t *testing.T)
test/api/http/example/example_test.go:21
Function
TestDefaultOrder
(t *testing.T)
internal/db/sqlorder/order_test.go:56
Function
TestDeleteExample
(t *testing.T)
test/api/http/example/example_test.go:195
Function
TestFailSpan
(t *testing.T)
internal/observability/tracing/trace_test.go:47
Function
TestForbiddenError
(t *testing.T)
internal/httperrors/forbidden_test.go:11
Function
TestGRPCAuthMock
(t *testing.T)
internal/middleware/grpc_test.go:144
Function
TestGRPCAuthOptional
(t *testing.T)
internal/middleware/grpc_test.go:96
Function
TestGRPCAuthRequired
(t *testing.T)
internal/middleware/grpc_test.go:25
Function
TestGRPCAuthRequired_MockEnabled
(t *testing.T)
internal/middleware/grpc_test.go:77
Function
TestGRPCWorker_Run_ListenError
(t *testing.T)
internal/worker/grpc_integration_test.go:39
Function
TestGRPCWorker_Run_Shutdown
(t *testing.T)
internal/worker/grpc_integration_test.go:15
Function
TestGenerateAndParseJWTToken
(t *testing.T)
internal/auth/jwt_test.go:50
Function
TestGetExample
(t *testing.T)
test/api/http/example/example_test.go:103
Function
TestHTTPWorker_Run_ListenError
(t *testing.T)
internal/worker/http_integration_test.go:39
Function
TestHTTPWorker_Run_Shutdown
(t *testing.T)
internal/worker/http_integration_test.go:15
Function
TestListExamples
(t *testing.T)
test/api/http/example/example_test.go:168
Function
TestLoad
(t *testing.T)
internal/config/config_test.go:69
Function
TestLoad_Validate
(t *testing.T)
internal/config/config_test.go:167
Function
TestLogErrorHandler
(t *testing.T)
internal/gokit/http/http_test.go:89
Function
TestLogLevels
(t *testing.T)
internal/observability/logger/logger_test.go:108
Function
TestLogWithFields
(t *testing.T)
internal/observability/logger/logger_test.go:138
Function
TestLoggerSetup
(t *testing.T)
internal/observability/logger/logger_test.go:20
← previous
next →
301–400 of 465, ranked by callers