Files
sub2api/backend/internal/service/ports/http_upstream.go
2025-12-22 22:58:31 +08:00

10 lines
306 B
Go

package ports
import "net/http"
// HTTPUpstream interface for making HTTP requests to upstream APIs (Claude, OpenAI, etc.)
// This is a generic interface that can be used for any HTTP-based upstream service.
type HTTPUpstream interface {
Do(req *http.Request, proxyURL string) (*http.Response, error)
}