Files
xinghuoapi/backend/internal/service/http_upstream_port.go
2025-12-25 17:15:01 +08:00

10 lines
308 B
Go

package service
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)
}