MCPcopy
hub / github.com/usememos/memos / ConnectServiceHandler

Struct ConnectServiceHandler

server/router/api/v1/connect_handler.go:21–23  ·  view source on GitHub ↗

ConnectServiceHandler wraps APIV1Service to implement Connect handler interfaces. It adapts the existing gRPC service implementations to work with Connect's request/response wrapper types. This wrapper pattern allows us to: - Reuse existing gRPC service implementations - Support both native gRPC an

Source from the content-addressed store, hash-verified

19// - Support both native gRPC and Connect protocols
20// - Maintain a single source of truth for business logic.
21type ConnectServiceHandler struct {
22 *APIV1Service
23}
24
25// NewConnectServiceHandler creates a new Connect service handler.
26func NewConnectServiceHandler(svc *APIV1Service) *ConnectServiceHandler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected