fix: use context.Context instead of interface{} in VerificationService interface

The handler's VerificationService interface used interface{} for the ctx
parameter, but the service implementation uses context.Context. This caused
a compile error: *service.VerificationService does not implement
handler.VerificationService.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Shankar
2026-03-27 21:13:48 -04:00
parent 16dcaf4970
commit 1198a70a33
3 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
package handler
import (
"context"
"encoding/json"
"fmt"
"net/http"
@@ -13,10 +14,10 @@ import (
// VerificationService defines the service interface for verification operations.
type VerificationService interface {
// RecordVerificationResult records the outcome of TLS endpoint verification.
RecordVerificationResult(ctx interface{}, result *domain.VerificationResult) error
RecordVerificationResult(ctx context.Context, result *domain.VerificationResult) error
// GetVerificationResult retrieves the verification status for a job.
GetVerificationResult(ctx interface{}, jobID string) (*domain.VerificationResult, error)
GetVerificationResult(ctx context.Context, jobID string) (*domain.VerificationResult, error)
}
// VerificationHandler handles HTTP requests for certificate deployment verification.